// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_3x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_3x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.075701832771301,-0.027991829439998,0.025725061073899,0.054022710770369);
res += vec4(0.029933054000139,0.040619052946568,-0.076316647231579,-0.092757865786552) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.259876161813736,-0.057972334325314,0.046459831297398,0.064097985625267) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.238297536969185,-0.013789284974337,-0.002389819361269,0.019549436867237) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.121382251381874,-0.030854821205139,-0.054032627493143,-0.055848725140095) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.078390210866928,0.056867901235819,0.042478144168854,-0.006970867980272) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.027222350239754,0.006954727228731,0.037606883794069,-0.135966196656227) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.077995687723160,0.078983955085278,0.142201274633408,-0.076704755425453) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.168609142303467,-0.024601491168141,-0.188935980200768,-0.033016644418240) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.040096949785948,-0.450282871723175,0.174296587705612,-0.021336764097214) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.034125655889511,-0.452257156372070,-0.121114529669285,0.041708044707775) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.146869271993637,-0.078656353056431,0.198150366544724,0.072157055139542) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.279126912355423,0.070706285536289,-0.638189733028412,0.706364452838898) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.300027400255203,-0.127819120883942,0.210128545761108,0.151709914207458) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.326687008142471,0.579618394374847,0.033489972352982,-0.106376834213734) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.056996021419764,-0.364513605833054,0.177348941564560,0.003219118341804) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.034370418637991,0.012840556912124,0.186360865831375,-0.930503666400909) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.183345869183540,0.040114950388670,0.190956339240074,-0.336243510246277) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.128022566437721,0.149680957198143,-0.262278199195862,-0.247512504458427) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.017326431348920,0.232257589697838,-0.014959737658501,0.171836808323860) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.128757104277611,0.007724902592599,-0.161826848983765,-0.065409772098064) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.079472690820694,0.001036077388562,-0.020752692595124,-0.400740802288055) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.091649033129215,-0.049827378243208,-0.056225422769785,0.098476171493530) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.246028542518616,0.002985980128869,0.258315473794937,-0.024418460205197) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.127071842551231,0.120966084301472,-0.166136428713799,0.005538527388126) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.019644107669592,0.135870069265366,0.061980828642845,-0.012704462744296) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.013327281922102,-0.045722749084234,0.506375610828400,0.010578325949609) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_3x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.079170078039169,0.344419449567795,-0.002550810575485,0.041429858654737);
res += vec4(-0.043273735791445,0.020469868555665,0.088423214852810,0.065957061946392) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.035978056490421,-0.077867247164249,-0.271639794111252,-0.063602700829506) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.094977132976055,0.089721351861954,0.175042584538460,0.046654976904392) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.178363204002380,-0.001551236375235,0.011755105108023,-0.080222733318806) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.055316932499409,0.024885760620236,-0.125042721629143,0.011616203933954) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.051671221852303,-0.039208091795444,0.118899859488010,0.122931852936745) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.083475463092327,0.046871464699507,-0.321155250072479,-0.497698247432709) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.314512312412262,-0.644980967044830,0.706053972244263,0.461962372064590) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.171831950545311,0.058839883655310,-0.227269977331161,-0.100050397217274) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.091324128210545,-0.044269591569901,0.045641440898180,-0.021049603819847) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.136279478669167,-0.022872805595398,-0.057947494089603,-0.196602821350098) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.267195880413055,0.084158457815647,-0.238501012325287,0.497167974710464) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.879330694675446,-0.770153820514679,0.237824484705925,-0.418363183736801) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.715801775455475,-0.212138742208481,-0.441604524850845,0.279597043991089) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.055174678564072,0.041764240711927,0.031435195356607,-0.111343614757061) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.101640798151493,0.089566342532635,-0.160445943474770,0.023551089689136) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.168628752231598,-0.114075064659119,0.103782400488853,0.017998697236180) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.612696886062622,0.182675942778587,0.133020743727684,-0.062111806124449) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.346016913652420,-0.047886874526739,-0.057242188602686,-0.088136047124863) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.014171520248055,-0.052742522209883,-0.039745029062033,0.112942576408386) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.092157162725925,-0.007968871854246,-0.015947187319398,-0.025404086336493) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.044372167438269,0.071532681584358,0.110787861049175,0.058462094515562) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.175849184393883,-0.070538580417633,-0.044663373380899,-0.014525832608342) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.155990138649940,0.003925094380975,-0.082151539623737,-0.064534112811089) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.047539230436087,0.071686565876007,0.060938354581594,0.031429536640644) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.979679703712463,-0.003696328029037,-0.107726350426674,0.755739808082581) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_3x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(0.089589633047581,0.082289226353168,-0.704034090042114,-0.252223074436188);
res += vec4(-0.000839404645376,-0.010946808382869,0.058983359485865,0.038967706263065) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.081904776394367,0.010037046857178,-0.081071779131889,-0.338865071535110) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.071625091135502,-0.045324701815844,0.009067432954907,0.028455968946218) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.024010244756937,0.008741479367018,0.005770966876298,0.054441932588816) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.013971925713122,-0.009004650637507,-0.000962712161709,0.061924554407597) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.005980804562569,0.015585826709867,0.003180601634085,-0.244409322738647) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.132089599967003,-0.010146706365049,-0.012534417212009,-0.510045230388641) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.087814114987850,0.188735768198967,0.063822135329247,-0.005670117214322) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.224642530083656,0.022816197946668,-0.055205807089806,-0.026229951530695) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.010191631503403,0.008577814325690,0.012285570614040,0.030134884640574) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.023383682593703,0.132893964648247,-0.101560316979885,-0.019384229555726) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.094313360750675,-1.434359073638916,0.372929394245148,0.011317547410727) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.351218312978745,0.080969162285328,0.776639580726624,0.540027618408203) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.101800926029682,0.121234193444252,-0.027779048308730,0.184926450252533) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.003223926061764,-0.003119238652289,0.004091135226190,0.117033384740353) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.007121653761715,0.009817338548601,-0.014517674222589,0.022536432370543) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.059883791953325,-0.124494224786758,-0.112370930612087,-0.192383185029030) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-1.257373452186584,0.406136661767960,0.145434290170670,0.198138624429703) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.120135530829430,0.037914462387562,-0.049264475703239,-0.059736087918282) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.070624046027660,0.040792819112539,0.014065944589674,0.045198060572147) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.015583271160722,-0.031796753406525,0.035228792577982,0.095877654850483) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.097519844770432,0.117855265736580,-0.061546277254820,0.023045090958476) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.055110763758421,-0.056809738278389,-0.024644063785672,0.068523690104485) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.039913523942232,0.010412998497486,0.037658348679543,-0.014784659259021) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.021205587312579,-0.033704806119204,-0.005698853172362,-0.102340854704380) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.026867635548115,-0.107352502644062,-0.020989187061787,-0.016409009695053) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_3x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(0.059026315808296,0.076349511742592,0.022738423198462,-0.370700031518936);
res += vec4(0.017781546339393,0.018518202006817,-0.105463996529579,-0.067568100988865) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.104477688670158,-0.058895491063595,0.048161920160055,0.100064083933830) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.066645309329033,-0.084565453231335,-0.013329701498151,-0.027646275237203) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.034542888402939,0.027234034612775,0.072850741446018,0.031950220465660) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.033673334866762,0.036567464470863,0.005439689848572,-0.010268110781908) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.132304221391678,0.052318729460239,0.165786132216454,-0.122319526970387) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.316075325012207,0.061899852007627,-0.040895882993937,0.011772631667554) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.563215970993042,-0.407324939966202,-0.494854658842087,0.155595496296883) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.146406665444374,0.324517369270325,0.332897245883942,-0.271705776453018) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.054366070777178,-0.045749738812447,-0.127425298094749,-0.072793319821358) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.215518444776535,-0.161225154995918,-0.216438531875610,0.253252327442169) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.265712827444077,0.109823688864708,0.061076577752829,0.315344154834747) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.849181652069092,-0.258366435766220,0.586843550205231,0.358177244663239) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.145657062530518,0.250391662120819,-0.237977251410484,-0.184901982545853) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.132339105010033,0.056321542710066,0.016382243484259,-0.008571940474212) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.119789451360703,0.083649925887585,0.104064814746380,-0.011865556240082) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.138007417321205,0.294668942689896,-0.172015979886055,0.042994562536478) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.163422346115112,-0.363018006086349,0.479721873998642,0.171376392245293) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.038808863610029,0.095570765435696,-0.372141897678375,-0.202414840459824) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.122647002339363,-0.087657049298286,0.113888800144196,0.004923227708787) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.019290227442980,-0.018449289724231,-0.053276110440493,0.005232954863459) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.106545843183994,-0.117178186774254,0.058752927929163,0.029600752517581) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.036099869757891,0.071685880422592,-0.214261248707771,0.104486711323261) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.040359899401665,-0.001795685617253,0.005745777394623,-0.117674395442009) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.038513317704201,0.058527912944555,-0.025498269125819,0.030137877911329) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.016570342704654,0.730391502380371,0.885491371154785,0.013596438802779) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_3x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(0.189977884292603,-0.469497770071030,0.273147970438004,0.049076084047556);
res += vec4(-0.004814777988940,-0.043178413063288,0.001573824323714,-0.014152036048472) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.072437010705471,0.037413686513901,0.008709237910807,0.027337368577719) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.249308601021767,0.066624604165554,0.015176208689809,-0.051024626940489) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.079895645380020,-0.059681426733732,-0.026340762153268,0.034514531493187) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.034502536058426,0.034817565232515,0.014328855089843,-0.008086549118161) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.002425032900646,-0.003584862686694,0.014765407890081,-0.007309893611819) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.105764180421829,0.238824710249901,-0.056854467839003,0.020702160894871) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.472126424312592,0.188634976744652,0.269002348184586,-0.132469251751900) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.026800123974681,0.217186972498894,-0.048231266438961,-0.007217139936984) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.024674175307155,-0.014552284032106,-0.031977456063032,0.028397772461176) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.158121719956398,0.070641875267029,-0.038382679224014,0.040787007659674) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.357081413269043,0.123854942619801,0.252723604440689,-0.208034023642540) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.778109550476074,0.122203990817070,-0.791042685508728,-0.732157588005066) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.226203635334969,0.173041909933090,-1.481580138206482,-0.012113173492253) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.141039848327637,-0.052323225885630,-0.018888607621193,-0.080391205847263) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.037700049579144,-0.025556560605764,0.007055669557303,-0.023103589192033) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.279445588588715,-0.032646324485540,-0.078574277460575,0.201653540134430) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.117947749793530,0.133814424276352,0.249111562967300,0.774141311645508) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.531465172767639,0.127886816859245,-0.067578993737698,0.044078100472689) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.218365669250488,-0.017751950770617,0.013004643842578,0.048272721469402) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.025545740500093,0.032356806099415,-0.031683705747128,-0.006633887998760) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.001083518378437,0.067450761795044,0.071582764387131,-0.049704916775227) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.163443252444267,-0.105688199400902,-0.051902357488871,0.156040996313095) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.057992741465569,0.051935806870461,0.040461212396622,-0.066673502326012) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.014857488684356,-0.015798583626747,-0.075069934129715,0.005866909865290) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.004118332173675,0.814771771430969,0.003221076214686,-0.471205949783325) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_3x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(-0.041034612804651,-0.029929479584098,-0.336102455854416,0.033559557050467);
res += vec4(0.003746095346287,0.000653291237541,0.098156042397022,-0.033046364784241) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.160562902688980,0.279277205467224,-0.155297160148621,-0.003699289634824) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.178953394293785,0.022857924923301,-0.025027658790350,-0.004374376498163) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.019595971331000,-0.216008827090263,0.011623949743807,0.075033448636532) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.017408119514585,-0.073028281331062,0.019797610118985,-0.004763096105307) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.270286828279495,-0.060377020388842,-0.169105544686317,0.017684852704406) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.300082772970200,-0.333355069160461,-0.049871411174536,0.276476889848709) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.042965259402990,-0.071313641965389,-0.336346119642258,-0.293422043323517) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.034361317753792,0.159553989768028,-0.083998322486877,-0.130449309945107) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.003175081219524,0.277975112199783,-0.108095549046993,-0.019317179918289) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.067669466137886,-0.201164454221725,0.203997626900673,-0.057922806590796) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.377604663372040,0.161279901862144,-0.124934934079647,0.077834799885750) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.025798566639423,0.272831350564957,0.729066550731659,0.678990185260773) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.217895731329918,-0.181289300322533,-0.061549931764603,0.220017924904823) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.004557554144412,0.113841988146305,0.088804028928280,0.008766627870500) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.385902732610703,0.286714166402817,-0.043130856007338,0.037368439137936) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.041327137500048,-0.238815501332283,0.098584309220314,-0.275306433439255) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.360407829284668,0.024446541443467,0.487160563468933,-0.380067169666290) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.101024985313416,0.017158666625619,-0.034563735127449,-0.174834117293358) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.030559035018086,-0.198461130261421,-0.016716865822673,0.013313300907612) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.030522152781487,0.044461145997047,0.017124129459262,-0.057030800729990) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.079516887664795,-0.003323670011014,0.042003229260445,-0.094946213066578) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.221213445067406,-0.096203543245792,0.037734691053629,0.095136329531670) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.288253128528595,0.141755640506744,0.047722034156322,0.025249321013689) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.003163898829371,-0.066443309187889,-0.000338180165272,0.011109914630651) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.140001788735390,0.989866316318512,0.953808605670929,0.668877482414246) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_3x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(-0.074690684676170,-0.027157653123140,-0.051104065030813,-0.346495151519775);
res += mat4(-0.044550716876984,-0.049463201314211,-0.182484060525894,0.068392127752304,-0.143831908702850,-0.097422853112221,-0.210873097181320,-0.093815848231316,-0.078845843672752,-0.076196834445000,-0.008196054026484,0.092217028141022,0.034453481435776,0.077609449625015,0.110257215797901,0.077116213738918) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.117290385067463,-0.039920754730701,0.094661451876163,0.100875213742256,-0.376928538084030,-0.010063955560327,0.206502944231033,-0.249003902077675,0.006808146834373,-0.065946154296398,-0.055055469274521,0.042783699929714,0.313141584396362,0.151052519679070,0.019077325239778,0.035834759473801) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.158147245645523,0.016960473731160,-0.038156867027283,0.112867698073387,-0.010497462004423,-0.031976398080587,-0.068886660039425,0.043975431472063,-0.048932950943708,0.125981613993645,0.173086687922478,-0.212525516748428,0.337176084518433,0.036585692316294,-0.160646736621857,0.055271666496992) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.186251848936081,0.036837063729763,-0.139130413532257,-0.032492801547050,0.073403410613537,-0.012108565308154,-0.041346441954374,-0.204954594373703,0.136830747127533,0.225444689393044,0.056208208203316,0.177671983838081,0.004798133857548,-0.076843842864037,0.082003608345985,-0.022984528914094) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.125553414225578,0.041944570839405,-0.105563774704933,-0.035350613296032,-0.028968060389161,0.000449508283054,-0.072682626545429,-0.093959450721741,-0.241181552410126,-0.247861728072166,0.069440111517906,-0.210506826639175,0.143940955400467,-0.075194530189037,-0.038050677627325,-0.139712601900101) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.118778735399246,-0.023767590522766,0.112715862691402,-0.013396240770817,0.023983810096979,0.000253190577496,-0.010578402318060,-0.044258709996939,0.222266569733620,-0.067902944982052,-0.103727027773857,0.200581014156342,-0.041269868612289,-0.079487018287182,0.063214041292667,-0.007456207182258) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.238756850361824,0.089124292135239,-0.086373470723629,0.049620695412159,0.211682170629501,-0.035327956080437,0.027370298281312,0.022287582978606,0.104211762547493,-0.082954749464989,0.008740604855120,-0.076178327202797,0.014477443881333,-0.005336914211512,-0.001316497218795,0.051295876502991) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.247099354863167,-0.111179381608963,0.084489591419697,0.162378758192062,0.273319989442825,-0.030817635357380,0.012834802269936,0.021863181143999,-0.127919599413872,0.085202448070049,-0.113959431648254,0.126310080289841,0.371412009000778,0.051601495593786,-0.080891929566860,-0.071524322032928) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.084249600768089,0.081799961626530,-0.233323633670807,-0.035572052001953,-0.079052805900574,0.008062383159995,0.079990550875664,-0.022181082516909,-0.044307537376881,0.032086439430714,-0.122399896383286,-0.181913629174232,0.219577863812447,0.000981518067420,0.105710916221142,-0.021836141124368) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.341627568006516,0.138507381081581,-0.208564877510071,0.137869074940681,-0.097802169620991,0.098328307271004,0.013896033167839,-0.143581449985504,0.030461927875876,0.016847396269441,0.000600249681156,0.141113027930260,0.240430563688278,-0.025181388482451,-0.094838500022888,0.026927972212434) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.555494785308838,-0.061931654810905,0.542337834835052,-0.298808425664902,0.054077114909887,0.026808675378561,0.258784443140030,-0.254245012998581,0.023523736745119,-0.007715251296759,-0.066000871360302,-0.012466323561966,-0.105460867285728,0.079294346272945,0.109553605318069,-0.113281406462193) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.093094214797020,-0.023461047559977,-0.004055143333972,-0.003413436003029,0.186516046524048,0.041665788739920,-0.026847720146179,0.056373246014118,-0.022067552432418,0.012228945270181,-0.007856303825974,0.025812195613980,0.031980495899916,-0.029157456010580,0.136730864644051,0.082143910229206) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.067172519862652,-0.520508170127869,-0.043826844543219,-0.186331331729889,0.295337229967117,-0.309186905622482,-0.039043046534061,0.042388569563627,0.083626754581928,-0.055607315152884,-0.047523241490126,0.128474026918411,-0.159651041030884,0.044092681258917,-0.162439852952957,-0.169808298349380) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.263757616281509,-0.134064942598343,-0.293212711811066,0.459451615810394,-0.444856822490692,-0.090365327894688,-0.111849665641785,0.229537054896355,0.154196903109550,-0.022355517372489,0.038566187024117,-0.097268335521221,0.373488754034042,0.040282383561134,-0.106430426239967,0.208699449896812) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.067839838564396,-0.017117550596595,-0.021311737596989,-0.009305159561336,-0.035819072276354,-0.072364613413811,0.130881071090698,-0.068603031337261,0.000154739056597,-0.067964613437653,-0.210188001394272,0.147311031818390,-0.279323041439056,-0.097407281398773,0.271228462457657,-0.280332952737808) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.133200734853745,0.432701796293259,0.039652273058891,0.181713432073593,0.075896166265011,0.231154635548592,-0.003171397838742,-0.149800255894661,-0.269505083560944,-0.006658092606813,0.047959238290787,0.289844155311584,-0.083317711949348,0.163118690252304,-0.064288489520550,0.011216175742447) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.116076797246933,0.204634234309196,-0.098106801509857,-0.217861026525497,0.114409834146500,0.014968025498092,-0.087297104299068,0.212707221508026,-0.231045365333557,0.201250776648521,0.056688565760851,-0.073191754519939,0.072509422898293,-0.156832620501518,-0.036162000149488,-0.149475410580635) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.106359422206879,-0.008225343190134,-0.084333173930645,-0.061819761991501,-0.128683388233185,-0.011364937759936,0.026156090199947,-0.101382523775101,0.012314666062593,0.071023814380169,0.125871941447258,0.009813739918172,-0.068165630102158,0.026998046785593,-0.022455345839262,0.178282141685486) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.105931438505650,0.041828334331512,-0.236335173249245,-0.007625708356500,-0.199633911252022,-0.045341759920120,-0.082203485071659,-0.178780317306519,-0.011869220063090,0.016450278460979,0.113214477896690,0.017350146546960,0.016728524118662,0.020151941105723,0.075050503015518,-0.323860138654709) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.039910998195410,0.129339843988419,-0.312439978122711,0.221873715519905,0.072379112243652,0.109599366784096,0.078208647668362,0.066488966345787,0.333703279495239,0.030222099274397,-0.129891544580460,-0.036200795322657,-0.260917186737061,0.022372173145413,0.179074674844742,-0.148153483867645) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.016199570149183,0.090639479458332,0.117001704871655,-0.027215786278248,0.571386218070984,0.075176514685154,0.162124142050743,0.108731701970100,0.184589251875877,0.054499134421349,0.082510173320770,-0.158969327807426,-0.023642849177122,0.049262594431639,0.029479201883078,-0.077785335481167) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.036464732140303,0.068707711994648,0.262777090072632,0.246587097644806,-0.326948642730713,0.210087835788727,0.122792735695839,-0.264338612556458,-0.027253372594714,0.371240794658661,0.086607277393341,0.003308843588457,0.202029213309288,-0.009465093724430,-0.050205573439598,-0.188345342874527) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.101299479603767,-0.160733655095100,-0.140076637268066,-0.056142847985029,-0.041420087218285,-0.284972071647644,-0.202128916978836,0.031440243124962,-0.167063251137733,0.214225411415100,-0.046132255345583,0.029994174838066,0.205577388405800,0.106731675565243,-0.041645731776953,0.040626287460327) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.030877405777574,-0.097704209387302,-0.080040849745274,0.109136700630188,-0.128599971532822,-0.131992459297180,-0.213651657104492,0.377268552780151,0.051445119082928,-0.035744771361351,0.011599728837609,-0.001330968574621,0.238496318459511,-0.000208213314181,-0.199944853782654,0.008746555075049) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.263333857059479,-0.240050479769707,0.049874953925610,-0.164030566811562,0.008334000594914,-0.243386372923851,-0.005367714446038,-0.105154246091843,0.035861369222403,-0.371451735496521,0.116242095828056,0.036212068051100,0.027212787419558,0.069271460175514,0.053592383861542,-0.072638288140297) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.202690050005913,0.017152741551399,0.051709759980440,-0.080223061144352,-0.218046605587006,0.246474176645279,-0.103181220591068,0.099226295948029,-0.258907705545425,-0.243876844644547,0.045590218156576,-0.020387116819620,0.023830745369196,-0.129657432436943,0.082731261849403,-0.115692719817162) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.192647263407707,-0.015487185679376,-0.081451825797558,-0.275405079126358,-0.082508593797684,0.070701695978642,0.021206121891737,0.045618515461683,-0.019432373344898,0.046117637306452,-0.040701664984226,-0.068262651562691,0.026449719443917,-0.082590334117413,0.040081523358822,0.109284877777100) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.001648236415349,-0.033159475773573,0.172057241201401,0.024438692256808,0.251861393451691,-0.077483862638474,0.018336998298764,-0.044303748756647,-0.017903026193380,0.222594857215881,0.103394411504269,0.054964326322079,-0.144209742546082,-0.001779767801054,0.093889459967613,0.021832970902324) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.051398817449808,0.014690124429762,0.273494094610214,0.079652443528175,-0.189195707440376,0.150346368551254,0.054180022329092,0.163759887218475,0.170708134770393,0.084436319768429,-0.348924815654755,-0.108552426099777,0.052955720573664,0.090785101056099,0.033734306693077,-0.071363091468811) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.094702757894993,-0.034632198512554,-0.069109782576561,0.125503912568092,0.011037910357118,0.137423828244209,0.007720778230578,-0.278597623109818,0.227969974279404,-0.123120240867138,-0.236776024103165,0.241670414805412,0.174797415733337,0.043436709791422,-0.040529243648052,-0.213086545467377) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.081039994955063,0.021370159462094,-0.107254937291145,0.043844990432262,0.152802705764771,0.236103028059006,-0.251338958740234,-0.123362086713314,0.158910170197487,0.135610252618790,0.066243939101696,-0.080209583044052,-0.045569632202387,0.059508342295885,-0.120852015912533,0.173674672842026) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.233871161937714,-0.119548447430134,-0.057372972369194,-0.161996379494667,-0.082437224686146,-0.161696314811707,0.077315650880337,0.147778555750847,-0.357232749462128,0.295295387506485,0.278402775526047,-0.226116999983788,-0.017941175028682,0.089107468724251,-0.092811390757561,-0.028182834386826) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.253520250320435,-0.078287601470947,-0.014659094624221,0.168006330728531,0.028330050408840,-0.230264633893967,-0.006078229285777,-0.003942646551877,0.159408196806908,-0.046436294913292,-0.033430065959692,0.004477244801819,0.030371071770787,-0.021426804363728,0.082758046686649,-0.165892064571381) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.059259325265884,-0.093230284750462,-0.058111645281315,0.088849350810051,0.043764915317297,-0.177657276391983,0.028309293091297,-0.171292379498482,-0.084681384265423,-0.340823829174042,0.067943446338177,-0.085153959691525,0.152043327689171,-0.013948014006019,-0.187277361750603,0.008305886760354) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.009582858532667,-0.207183241844177,-0.092603072524071,0.127217009663582,0.097608998417854,-0.074232794344425,0.089994877576828,0.094530180096626,-0.137029290199280,-0.293113797903061,-0.008697336539626,0.025071891024709,-0.062085252255201,-0.079330831766129,0.129939600825310,-0.008078076876700) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.129138514399529,0.021413892507553,-0.029684174805880,0.318029046058655,-0.172326549887657,0.137169018387794,0.193240821361542,-0.254981696605682,-0.070239953696728,0.057874582707882,0.025513365864754,0.119305536150932,-0.312955409288406,-0.045977000147104,0.002344147302210,-0.155973300337791) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.050634991377592,-0.096399411559105,-0.179121211171150,0.150841921567917,0.025860175490379,0.153216913342476,0.050910927355289,-0.084107063710690,-0.032300189137459,0.033624000847340,0.287596374750137,-0.111270546913147,-0.194813355803490,0.094686359167099,0.206599086523056,0.034657891839743) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.099812678992748,-0.064830385148525,0.013074833899736,-0.044520121067762,-0.005280332174152,-0.067877091467381,-0.032410781830549,-0.155460163950920,-0.220267772674561,-0.026446208357811,0.221635803580284,-0.233786284923553,-0.525720655918121,0.023716036230326,0.399997264146805,-0.337207496166229) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.286537259817123,0.048724517226219,-0.054271738976240,0.202470228075981,-0.018537867814302,0.091581501066685,-0.004382610321045,-0.006727406755090,0.065682694315910,0.023404734209180,0.024485016241670,-0.261215776205063,0.552574276924133,-0.020706513896585,0.152668878436089,-0.003191886702552) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.223019286990166,0.178032353520393,-0.125077813863754,-0.048390507698059,0.066694781184196,-0.024775784462690,-0.049411769956350,-0.309224098920822,0.106269538402557,0.030622672289610,-0.165251880884171,0.603857755661011,0.005419048480690,-1.238060712814331,-0.099559247493744,-0.055042531341314) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.043711513280869,0.071606501936913,-0.234367832541466,0.310335189104080,-0.030922811478376,0.155569955706596,-0.020593596622348,-0.460155010223389,0.217574179172516,-0.007803977467120,-0.039860729128122,0.160210058093071,-0.576846837997437,-0.033210989087820,0.063807494938374,-0.007736665196717) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.091003313660622,-0.033117029815912,-0.036692027002573,-0.027966326102614,0.115891546010971,-0.019430326297879,-0.062957346439362,-0.258178442716599,-0.263876646757126,0.001591985463165,0.044465679675341,-0.263319641351700,-0.017803786322474,0.129955247044563,0.056372798979282,-0.194166138768196) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.026531806215644,0.078370869159698,0.088560082018375,-0.127190038561821,-0.058322150260210,0.035731747746468,0.056187041103840,-0.193034380674362,-0.082721069455147,-0.002846750197932,-0.045476529747248,0.074343942105770,0.040401391685009,0.281016588211060,-0.102366797626019,0.106208048760891) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.097369611263275,-0.033717591315508,-0.003765164874494,0.074013978242874,-0.003292255336419,0.055536352097988,-0.049116134643555,-0.361897796392441,0.053245209157467,0.071679800748825,0.051439072936773,-0.027625756338239,-0.252861529588699,0.010892083868384,0.011069785803556,0.000725358026102) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.010629507713020,0.043383389711380,-0.019595319405198,0.035807829350233,-0.081673204898834,-0.084303632378578,-0.010761491023004,-0.199378684163094,-0.063187763094902,-0.001185075845569,-0.014859505929053,-0.054949451237917,-0.012401936575770,0.033751230686903,-0.054240066558123,0.129317581653595) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.092233054339886,-0.055040426552296,-0.168785572052002,0.128571137785912,-0.183568015694618,0.044118899852037,0.131008297204971,-0.105507932603359,-0.071039706468582,0.164027780294418,0.053389601409435,0.150332719087601,0.265568703413010,-0.065067201852798,-0.275518208742142,0.176756531000137) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.300325781106949,-0.206051886081696,-0.069515794515610,0.073493450880051,0.242219284176826,-0.042418681085110,-0.284736633300781,-0.000875697820447,0.300862610340118,0.011626589111984,-0.268955916166306,-0.155333563685417,0.323344767093658,-0.038684666156769,-0.286103755235672,0.093043521046638) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.183258071541786,-0.049919690936804,-0.093894176185131,0.120238102972507,-0.008419708348811,-0.023744961246848,-0.072386100888252,0.165296420454979,0.133999690413475,0.021968094632030,-0.113429576158524,-0.021206635981798,0.200961381196976,0.082581311464310,-0.085321180522442,0.079908348619938) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.070926591753960,0.055414311587811,-0.123808763921261,0.218546524643898,0.001235755509697,0.116047769784927,-0.029150893911719,0.086675502359867,-0.100129432976246,0.072596244513988,0.106521718204021,0.085231609642506,-0.248260214924812,0.418605536222458,0.170297488570213,-0.282691270112991) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.149295151233673,0.047042436897755,-0.060627195984125,-0.058363899588585,0.030058657750487,0.291066944599152,0.240759328007698,-0.119336076080799,-0.221170529723167,-0.087460249662399,0.271429985761642,-0.422049283981323,-0.333257079124451,0.302827894687653,0.147306621074677,-0.289401501417160) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.044591303914785,0.022313803434372,-0.246620982885361,0.055644549429417,-0.155274420976639,-0.073331788182259,0.053377252072096,-0.032607298344374,-0.011427361518145,0.259566128253937,-0.009628958068788,0.035436667501926,0.134865447878838,-0.099292941391468,0.027050249278545,-0.080144234001637) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.233629927039146,-0.084826275706291,0.044595818966627,-0.003242470789701,-0.101035058498383,-0.013315439224243,-0.054221991449594,0.055995412170887,0.075869657099247,-0.527730882167816,-0.028381155803800,0.168474093079567,0.071501806378365,-0.432863295078278,0.069563835859299,0.110887475311756) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.128652051091194,0.006244761869311,0.009968918748200,0.042331505566835,0.050836376845837,-0.346742272377014,0.050739049911499,0.064858630299568,-0.175470426678658,-0.230467021465302,0.105993799865246,0.075410895049572,-0.076476700603962,-0.082125596702099,0.149075403809547,0.208098843693733) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.175756096839905,-0.068365670740604,-0.132201522588730,0.021778589114547,0.142992198467255,0.048283789306879,-0.093886688351631,0.014098590239882,-0.204253107309341,-0.275507718324661,0.148947954177856,0.117793694138527,0.020740807056427,-0.027918832376599,-0.039181068539619,-0.115649364888668) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.156308844685555,-0.495499551296234,-0.168684780597687,-0.002020187675953) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_3x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(-0.007741454057395,-0.186434701085091,-0.667016386985779,-0.047175839543343);
res += mat4(-0.121907629072666,0.000002317063036,0.082113161683083,0.028339374810457,0.032592918723822,0.064001575112343,-0.060151100158691,-0.139735043048859,-0.170628756284714,-0.075954571366310,0.061361532658339,0.084747441112995,0.020541409030557,-0.029556782916188,0.012065296992660,0.006815275177360) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.097044833004475,0.094973601400852,0.025829851627350,0.091731287539005,-0.073414243757725,0.006756708957255,0.039886783808470,0.058314688503742,-0.033751081675291,-0.118557050824165,-0.066347092390060,0.024118555709720,0.051626484841108,-0.012337760999799,0.034221224486828,-0.022978300228715) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.026017518714070,-0.019701411947608,0.127248585224152,-0.089012056589127,0.012762456201017,-0.030630564317107,0.038241542875767,-0.131873354315758,-0.182369157671928,0.133402317762375,0.042902458459139,-0.045582022517920,-0.114860795438290,-0.028445921838284,0.026161273941398,-0.143196195363998) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.060981243848801,-0.033890992403030,0.135715663433075,-0.048357412219048,0.003061267780140,0.102740794420242,-0.076650120317936,-0.043448228389025,-0.099590465426445,0.011695684865117,0.387372106313705,0.105150401592255,0.001748088747263,-0.126951307058334,0.055498205125332,-0.015786895528436) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.196824029088020,0.012192739173770,0.162593424320221,-0.049128413200378,-0.077331751585007,-0.004386469256133,0.050566323101521,0.092705205082893,0.095736242830753,0.164765626192093,-0.324689805507660,0.129729121923447,0.066502049565315,-0.011973793618381,-0.092421114444733,-0.003767271991819) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.114474542438984,0.037448659539223,-0.117201551795006,0.106990851461887,-0.030108673498034,-0.025878775864840,-0.034610424190760,-0.021576143801212,0.130696728825569,-0.168396368622780,0.050255618989468,-0.212588980793953,-0.074017852544785,0.334350675344467,0.154843091964722,0.114891678094864) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.046617478132248,-0.018506994470954,-0.062852665781975,-0.100679516792297,-0.059796858578920,-0.191123396158218,-0.055037569254637,0.124422125518322,0.074555478990078,-0.058375425636768,-0.109996467828751,0.153031930327415,-0.027009349316359,-0.070661962032318,0.039595231413841,0.017591051757336) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.085345879197121,-0.038677386939526,-0.099383324384689,0.107827395200729,-0.009734877385199,-0.030067995190620,0.150052696466446,-0.172296866774559,0.098496891558170,-0.005653758067638,0.010270302183926,-0.233740344643593,0.035277623683214,-0.027092190459371,-0.083060346543789,0.044625349342823) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.085866115987301,-0.179255455732346,0.048875041306019,-0.143732383847237,-0.019380737096071,-0.032275851815939,0.074016794562340,-0.005152341909707,0.130684062838554,0.127663269639015,-0.102811530232430,-0.012711753137410,-0.120893582701683,0.067115232348442,-0.063130743801594,0.062051590532064) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.388959974050522,0.030494220554829,0.348325431346893,-0.223971977829933,0.009659291245043,0.004128563217819,0.126162573695183,0.009251892566681,0.032664727419615,-0.010177059099078,-0.014242081902921,0.033701248466969,0.043530981987715,0.031637538224459,-0.035968869924545,0.008888297714293) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.027344336733222,0.394053041934967,-0.127120465040207,0.295824795961380,0.071842908859253,0.035232450813055,-0.012282988987863,-0.054329507052898,-0.022679844871163,0.130044490098953,0.025726443156600,0.067267075181007,0.006539869122207,0.052022617310286,-0.005552379414439,-0.089955404400826) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.190050587058067,-0.109585046768188,0.036739651113749,0.054652124643326,-0.010043668560684,0.044389355927706,-0.154887646436691,-0.053862702101469,0.031551863998175,0.101980127394199,-0.009476837702096,-0.051633149385452,-0.034146483987570,-0.163171783089638,-0.005486997310072,-0.056807756423950) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.029628215357661,0.570009350776672,-0.274788618087769,0.652259588241577,0.176069691777229,0.023840194568038,-0.020568551495671,0.084425516426563,0.007596643641591,0.112180002033710,0.031494025141001,-0.167984262108803,0.028495674952865,0.175886988639832,-0.197490945458412,0.165627822279930) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.263119220733643,-0.585916638374329,-0.306458085775375,-0.202376872301102,0.034599766135216,-0.109271667897701,0.100447408854961,-0.117848865687847,-0.007988193072379,-0.028357643634081,-0.116678684949875,-0.026101661846042,-0.069288991391659,-0.220579400658607,0.254278302192688,-0.332173436880112) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.002232834231108,-0.205223679542542,0.016631746664643,-0.189224258065224,-0.174511820077896,-0.033079121261835,-0.001544701168314,0.120755180716515,0.048823077231646,-0.026503613218665,-0.001715375808999,-0.020430564880371,0.057923223823309,0.202832773327827,-0.070803016424179,0.297711670398712) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.348509460687637,-0.140073359012604,0.143449842929840,0.065970160067081,0.082081466913223,-0.040582325309515,-0.043475054204464,-0.067212499678135,0.049195084720850,0.054310597479343,-0.058388419449329,-0.098627947270870,-0.199170261621475,-0.038743678480387,0.371336042881012,-0.216982826590538) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.149626389145851,0.274976372718811,0.001994932303205,0.125835746526718,-0.171108856797218,-0.012100884690881,0.088694140315056,-0.007125619333237,0.193981111049652,0.041531853377819,-0.049035463482141,-0.180102884769440,0.019108902662992,0.121580019593239,-0.294567346572876,0.355087667703629) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.074616722762585,-0.052891869097948,-0.018651472404599,-0.180271700024605,0.129547312855721,0.036529667675495,-0.143694460391998,0.103889547288418,-0.030419444665313,0.025151755660772,-0.016372753307223,0.157873645424843,0.126146286725998,-0.153711467981339,-0.015339206904173,-0.056613769382238) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.094591669738293,0.044858016073704,0.003349440637976,-0.270301252603531,0.111895985901356,-0.048722535371780,0.074564091861248,0.111708603799343,0.208952575922012,-0.025060722604394,0.019631886854768,-0.045678209513426,-0.002441010670736,0.044366303831339,0.034959856420755,0.030762424692512) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.175053060054779,0.022095253691077,-0.060602638870478,-0.040787540376186,-0.187988013029099,0.107469275593758,0.351311475038528,0.029415957629681,-0.238911673426628,-0.230859711766243,-0.240260556340218,-0.014475665986538,0.013503146357834,0.017692899331450,-0.053401865065098,-0.060447413474321) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.104070372879505,0.035695925354958,0.033484306186438,0.219775289297104,0.037115838378668,0.071662701666355,0.178435042500496,0.100833304226398,-0.011438633315265,-0.102305054664612,-0.013487908989191,-0.221775978803635,0.155393764376640,-0.055903274565935,-0.089638091623783,0.066654182970524) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.087415143847466,-0.061622820794582,-0.007107601035386,-0.055099055171013,-0.069738171994686,-0.012152785435319,0.061219092458487,-0.022559961304069,-0.324893653392792,-0.041366383433342,0.634440600872040,-0.224722698330879,0.075262077152729,0.089913956820965,-0.048089411109686,-0.000997294089757) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.019853992387652,-0.155603647232056,0.185276925563812,0.086881130933762,0.171979740262032,0.056018821895123,0.148187607526779,-0.092191919684410,-0.153379932045937,0.211857020854950,0.325793653726578,0.288918405771255,-0.005072915926576,0.049802802503109,-0.064017415046692,-0.162803992629051) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.293615281581879,-0.056415982544422,-0.028042128309608,-0.142495244741440,-0.385829836130142,0.146011769771576,-0.090761274099350,-0.144055381417274,0.057945437729359,0.001257721451111,-0.286515414714813,0.364847272634506,-0.198855221271515,-0.074142903089523,-0.068907521665096,-0.001821560435928) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.041347935795784,-0.073225036263466,-0.047949668020010,0.006401112303138,-0.103784605860710,-0.007963602431118,0.069275006651878,0.023268634453416,-0.039712432771921,0.085789844393730,-0.199120610952377,0.008942819200456,0.065218016505241,-0.044558510184288,-0.081725701689720,-0.119303658604622) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.257272094488144,-0.046731401234865,-0.041560947895050,-0.081979751586914,-0.030483070760965,-0.022737538442016,0.247996106743813,-0.055346176028252,0.237220525741577,-0.151398465037346,-0.260822355747223,-0.074183046817780,-0.116444155573845,-0.077277213335037,0.021453170105815,-0.140945285558701) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.138719305396080,-0.037354100495577,0.084433190524578,0.022064212709665,0.009275611490011,0.050654839724302,0.148973003029823,0.068399585783482,0.147279590368271,-0.178347781300545,-0.220107838511467,0.077035173773766,-0.015862697735429,-0.072576195001602,-0.004799447488040,0.048880226910114) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.089306794106960,0.043001007288694,0.024843160063028,0.130122110247612,-0.168183952569962,0.224215254187584,-0.340277463197708,0.143932670354843,-0.058789838105440,-0.115328960120678,0.238986328244209,-0.281264930963516,-0.094995535910130,-0.035322584211826,-0.074293643236160,-0.151027351617813) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.008787651546299,0.192464083433151,0.034508284181356,0.017111001536250,0.084069073200226,-0.167876422405243,0.208922207355499,-0.168903604149818,-0.263993442058563,0.273673385381699,-0.155405342578888,0.299846202135086,0.141035482287407,0.012956217862666,0.073957562446594,0.048918198794127) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.106332309544086,0.025513248518109,0.035384465008974,-0.009215422905982,-0.013107953593135,0.222726017236710,0.065255716443062,0.001433184603229,0.090044423937798,0.087590567767620,0.019852807745337,-0.075047865509987,-0.105406366288662,-0.091753266751766,-0.018471153452992,-0.003628579899669) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.021286526694894,0.050737552344799,0.127185180783272,-0.054430391639471,0.130906268954277,0.117379285395145,-0.239276289939880,0.255286812782288,-0.318157166242599,-0.110371567308903,0.330859452486038,-0.509803593158722,-0.102225899696350,-0.102890700101852,-0.040134511888027,0.052337184548378) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.003726385766640,0.078888371586800,0.091003932058811,0.067348696291447,0.020749608054757,-0.190624475479126,0.071148864924908,-0.352203518152237,-0.037649672478437,0.217033639550209,-0.095981813967228,0.397864997386932,0.038983795791864,0.102873302996159,0.153860062360764,-0.066859312355518) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.062286686152220,-0.167524084448814,0.148136630654335,0.028230113908648,-0.132312610745430,0.103323914110661,0.012907658703625,0.096529722213745,0.372648209333420,-0.096375733613968,-0.110988497734070,0.124407634139061,-0.030162004753947,0.142469882965088,0.208834022283554,0.033675462007523) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.006894109770656,0.026885593309999,0.077371172606945,-0.023353554308414,0.124076731503010,0.079341761767864,-0.138867363333702,0.293726325035095,-0.019170511513948,0.016454005613923,-0.165309116244316,0.250146716833115,-0.033852081745863,-0.004348462913185,-0.335621476173401,-0.035614863038063) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.041371427476406,-0.033164456486702,0.017809320241213,0.039517797529697,0.132791742682457,-0.189141675829887,0.006954240147024,-0.266907483339310,0.214122653007507,-0.435781598091125,-0.115068189799786,-0.219854891300201,0.073124960064888,-0.083710819482803,-0.102105937898159,-0.041755709797144) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.092618890106678,0.033160392194986,0.004038260318339,-0.128728255629539,-0.053263980895281,0.061675924807787,0.091226115822792,0.098988763988018,0.074763000011444,0.021025180816650,0.086252778768539,0.038456726819277,0.002019965322688,-0.006873640231788,-0.186931625008583,-0.054213900119066) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.036659575998783,-0.007490477059036,0.032250139862299,0.004607658367604,0.019892226904631,0.123460292816162,0.269631236791611,-0.162110656499863,0.229887604713440,0.103963457047939,0.131776213645935,0.185084953904152,-0.372694849967957,0.069641806185246,0.086260773241520,-0.021343102678657) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.116433776915073,0.029167326167226,0.109299823641777,-0.121663324534893,-0.033983163535595,0.132950246334076,0.078252203762531,0.013826145790517,0.032980509102345,0.222414448857307,-0.028376093134284,-0.159982264041901,0.202831342816353,-0.041196674108505,0.039577014744282,0.108405128121376) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.030275076627731,-0.079802326858044,0.015271652489901,-0.028344133868814,-0.027624752372503,-0.112280979752541,0.001616410329007,-0.009340580552816,-0.027144834399223,-0.026068935170770,0.031646020710468,-0.082814857363701,0.094673350453377,-0.015500577166677,-0.111394472420216,-0.135134994983673) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.024415967985988,0.065875589847565,-0.062873139977455,-0.076882340013981,0.085960507392883,0.080393619835377,0.283418178558350,0.042969983071089,-0.052594929933548,-0.018636012449861,-0.005677402950823,-0.074652463197708,0.091764852404594,-0.009424232877791,-0.341626942157745,0.110687576234341) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.012470315210521,-0.158594235777855,0.175621330738068,-0.242884382605553,0.028551256284118,0.194163233041763,0.001358580077067,0.030305214226246,-0.079979725182056,0.110691241919994,0.159381762146950,-0.199710160493851,0.424162685871124,-0.045521639287472,0.041499868035316,-0.229235768318176) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.011971726082265,-0.004728891886771,-0.023743545636535,0.140999153256416,-0.003609700361267,0.023193376138806,0.037327889353037,0.014937913045287,-0.093196123838425,0.017197322100401,-0.047115668654442,-0.022362312301993,-0.082935750484467,-0.021287275478244,-0.111820869147778,0.147569984197617) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.054192874580622,0.051414463669062,0.011002485640347,-0.065656952559948,-0.091385513544083,0.066589154303074,0.255390912294388,0.003871187334880,-0.097096413373947,-0.073687896132469,0.008300633169711,0.072719760239124,-0.091356165707111,0.045616991817951,0.006140882149339,-0.034984424710274) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.000535882601980,0.018748654052615,-0.042089365422726,0.091191187500954,-0.147904321551323,0.062051147222519,0.099397607147694,0.031608726829290,-0.042736995965242,-0.002861085813493,0.048005398362875,-0.142169415950775,0.089551597833633,0.042489543557167,-0.033041216433048,0.016117002815008) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.024088235571980,0.024173736572266,-0.005564988590777,-0.076396010816097,0.085717663168907,0.091971576213837,-0.047324374318123,0.159835204482079,0.042917855083942,0.018228489905596,-0.043877594172955,-0.053691573441029,-0.096921414136887,0.063964672386646,0.009703111834824,0.018600415438414) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.060746178030968,0.035597480833530,0.020997049286962,0.017666429281235,0.113278172910213,0.005896925926208,0.056770075112581,-0.079402923583984,-0.098281189799309,-0.194650024175644,0.386465430259705,-0.267068117856979,0.062202595174313,-0.106678031384945,-0.080101765692234,-0.262401670217514) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.032496009021997,0.041408795863390,-0.070275247097015,-0.166758999228477,0.046539474278688,-0.051128212362528,-0.151787653565407,0.177404984831810,-0.263323426246643,0.374415278434753,0.080572299659252,0.147787407040596,-0.147112756967545,-0.418275713920593,-0.269322752952576,-0.030156688764691) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.046368625015020,-0.133152082562447,-0.005657305940986,-0.195196181535721,-0.362387269735336,-0.094225473701954,-0.038661416620016,-0.099902853369713,0.137205228209496,-0.188407808542252,-0.118334524333477,0.148126140236855,-0.110813148319721,0.015584247186780,-0.076236434280872,-0.077096618711948) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.009445745497942,0.024981945753098,-0.077115908265114,0.005959144793451,-0.015458142384887,0.014170366339386,0.136693313717842,0.005225932225585,-0.320624440908432,-0.112027622759342,0.506749808788300,-0.513196766376495,-0.166368320584297,0.238564312458038,0.391702473163605,-0.110495880246162) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.089399389922619,0.006355797406286,0.111295886337757,-0.059102766215801,-0.185831263661385,0.274455338716507,0.183403566479683,0.072128824889660,0.238754555583000,0.508357405662537,-0.158552452921867,0.554590821266174,-0.042547538876534,0.357859104871750,-0.000918319041375,0.388806909322739) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.147641822695732,-0.052975658327341,-0.026682674884796,0.013524394482374,0.063796877861023,0.072288148105145,-0.034911125898361,-0.044076982885599,0.200762152671814,-0.223020464181900,0.132926300168037,-0.068735204637051,-0.035376667976379,0.138161167502403,-0.032146755605936,0.066720910370350) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.178862914443016,0.070290260016918,-0.039525460451841,-0.004948129877448,0.101543918251991,0.075214564800262,0.025035312399268,-0.014567664824426,0.217634975910187,-0.077727101743221,-0.119564667344093,0.044002868235111,0.171175152063370,-0.007277132943273,-0.111181326210499,0.031729631125927) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.041265051811934,-0.050808008760214,0.050355557352304,0.078246399760246,0.095344990491867,-0.173540234565735,-0.255937755107880,0.084585115313530,0.214916855096817,-0.546319544315338,-0.110447540879250,-0.038135465234518,0.243211343884468,-0.276850491762161,0.153668180108070,-0.178860336542130) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.073994725942612,-0.006521446164697,-0.031821355223656,-0.049831978976727,0.201670095324516,-0.176587641239166,0.138650432229042,-0.140434071421623,-0.070232160389423,-0.330691337585449,-0.166425317525864,-0.034939408302307,-0.137347608804703,-0.125283896923065,-0.035820301622152,0.154754832386971) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.467213690280914,0.854047060012817,-0.025301715359092,0.137249380350113) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_3x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(0.021618269383907,-0.176114559173584,0.046829447150230,-0.080385036766529);
res += mat4(0.034515026956797,0.135960966348648,0.073059782385826,-0.148627966642380,-0.031163735315204,-0.350076138973236,0.189090266823769,-0.054355621337891,-0.018817570060492,0.002015368780121,-0.134381815791130,-0.026468677446246,-0.119868531823158,-0.082883968949318,-0.077370047569275,0.067461661994457) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.048730511218309,0.071921117603779,-0.070745550096035,-0.081357702612877,0.005393915809691,-0.107222519814968,-0.144510298967361,-0.086803361773491,0.039124287664890,0.224809557199478,0.155091956257820,0.050824075937271,-0.210078701376915,-0.146904900670052,-0.093480646610260,0.026180444285274) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.034448090940714,-0.107465915381908,0.220813810825348,0.014071097597480,0.020526990294456,-0.102773167192936,0.109881415963173,0.045410212129354,-0.026915561407804,0.038916256278753,0.069555640220642,-0.079596072435379,-0.140570431947708,-0.180080607533455,-0.097885899245739,0.128851681947708) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.017970601096749,0.126270800828934,0.003457495477051,-0.240985438227654,-0.164796665310860,-0.093142911791801,-0.001624619937502,0.052843827754259,-0.314573407173157,0.073305040597916,0.007200260646641,-0.019858682528138,0.018726529553533,0.015161156654358,-0.109789289534092,0.004139258060604) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.118034988641739,-0.021195046603680,-0.187866762280464,-0.065315864980221,0.090285494923592,-0.174788147211075,-0.047504536807537,0.112792573869228,0.084271110594273,-0.231149420142174,-0.096117973327637,0.027134262025356,0.089625626802444,-0.045066438615322,-0.045954871922731,0.021967221051455) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.038007281720638,-0.125333651900291,0.054272916167974,0.040012024343014,-0.015777222812176,-0.033064629882574,-0.021671829745173,-0.038150072097778,0.337558567523956,0.032197713851929,0.107754714787006,-0.010215030051768,0.251721620559692,-0.040130961686373,-0.053103890269995,0.042780250310898) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.014597548171878,-0.023298477753997,-0.103515192866325,-0.107813581824303,-0.248592942953110,0.250746309757233,-0.134368047118187,0.311512529850006,-0.156367287039757,0.026251312345266,0.150477066636086,0.027539033442736,-0.046908743679523,0.079761177301407,0.049587912857533,0.073153689503670) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.025806937366724,0.206446528434753,-0.138088971376419,-0.053668279200792,0.101188518106937,0.033082894980907,-0.077557317912579,0.078518807888031,-0.102368943393230,0.146846637129784,-0.042399793863297,0.051894240081310,-0.007733676116914,-0.043661277741194,0.180262655019760,0.074205942451954) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.072319187223911,0.047953784465790,-0.056484322994947,0.103722088038921,0.054429579526186,0.034470170736313,0.083081603050232,0.072442799806595,0.149058029055595,-0.039801374077797,-0.166086167097092,-0.080490186810493,0.094850718975067,-0.008761016651988,0.197470858693123,-0.038342617452145) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.015501164831221,0.213634729385376,0.264976561069489,0.011606379412115,-0.051263313740492,-0.015030781738460,-0.018983753398061,0.044210754334927,0.126814857125282,0.122877947986126,0.007106631062925,-0.133296012878418,0.069264166057110,0.026462504640222,-0.047039009630680,0.073028691112995) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.001526197069325,-0.239385649561882,-0.093990683555603,-0.036569140851498,0.041558355093002,-0.211728647351265,0.126888737082481,-0.218179702758789,-0.081087328493595,-0.062084421515465,-0.044766236096621,0.099018253386021,0.017070949077606,-0.022991567850113,0.022983733564615,-0.026764964684844) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.010263755917549,-0.124101378023624,0.143733933568001,0.112341128289700,-0.047590132802725,0.038351230323315,-0.002950298134238,0.091246478259563,0.045599184930325,0.164450317621231,-0.194572284817696,0.175883546471596,-0.016333730891347,0.021360686048865,0.035779997706413,-0.033643089234829) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.220542773604393,-0.424217939376831,0.303610175848007,0.054966911673546,-0.029718646779656,-0.145444929599762,-0.023196140304208,0.190184235572815,0.144602462649345,0.137371629476547,0.009669248014688,-0.132936477661133,-0.042496796697378,-0.146039277315140,-0.024468109011650,-0.162717401981354) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.059705428779125,0.071402281522751,-0.181846231222153,0.379156857728958,0.140716150403023,0.253390222787857,-0.014655926264822,-0.035863876342773,0.025822788476944,0.029598768800497,-0.270247668027878,0.095685385167599,0.122788116335869,0.285742580890656,0.009885277599096,0.086957514286041) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.067859999835491,0.138423502445221,-0.202028572559357,0.113291054964066,-0.009850085712969,0.107132211327553,-0.192216664552689,-0.106707178056240,0.109083719551563,-0.026883980259299,-0.134151712059975,0.181463688611984,-0.166842967271805,-0.139880150556564,-0.123284801840782,-0.004132084548473) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.181895017623901,0.206764370203018,-0.085439875721931,-0.008378366939723,-0.120697058737278,-0.278042584657669,0.012528878636658,-0.062432091683149,-0.416188150644302,0.182391107082367,0.051064781844616,-0.047447975724936,-0.077849157154560,0.236436471343040,0.033801641315222,-0.034072935581207) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.007637516129762,-0.051870543509722,-0.007213041186333,-0.113785207271576,0.133378341794014,-0.108601659536362,0.104391455650330,0.018808078020811,0.286235898733139,0.047033902257681,0.242719113826752,0.036224860697985,0.106149837374687,-0.121181771159172,0.008893956430256,-0.069925561547279) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.040433824062347,-0.225725218653679,-0.038076411932707,0.062265291810036,-0.007085750345141,-0.029903069138527,-0.034794449806213,-0.016801072284579,-0.136416062712669,0.146591529250145,-0.262290328741074,0.106596685945988,0.001486062305048,0.057890277355909,0.125858053565025,0.147094771265984) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.176315709948540,0.085899233818054,0.007483876775950,0.089078925549984,0.015074775554240,-0.188911125063896,-0.046937644481659,-0.182763054966927,-0.104168914258480,-0.015334428288043,0.025866894051433,-0.229797840118408,0.155147746205330,-0.058533590286970,0.047683965414762,0.065507158637047) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.157972991466522,-0.059305291622877,0.047687195241451,0.134968027472496,0.056906051933765,-0.027296157553792,-0.105968385934830,-0.315252780914307,0.017090193927288,0.308293908834457,0.039580188691616,-0.146642059087753,-0.050538577139378,-0.038272175937891,-0.048352923244238,-0.115202404558659) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.100225709378719,-0.067468054592609,0.083381272852421,-0.068829730153084,-0.138797923922539,0.023285800591111,-0.150082066655159,0.003244609571993,0.156577095389366,0.079053379595280,0.034325674176216,0.066540971398354,-0.112960629165173,-0.128712937235832,0.055383268743753,-0.036380134522915) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.131822839379311,0.160732164978981,-0.084340669214725,-0.037927631288767,0.165171280503273,-0.090068414807320,-0.105757318437099,-0.185944646596909,0.094089701771736,0.050163760781288,-0.098236575722694,-0.310145795345306,-0.012951291166246,-0.035697501152754,0.030960606411099,-0.052771165966988) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.142404273152351,-0.060748621821404,-0.052399341017008,-0.170832842588425,0.112782038748264,0.299947619438171,-0.092085458338261,-0.063649632036686,-0.091889612376690,0.004600485321134,-0.107782781124115,0.046893361955881,0.162643313407898,-0.034839082509279,-0.176642954349518,-0.191539302468300) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.111711561679840,-0.124167047441006,-0.254017591476440,-0.022436322644353,-0.050714507699013,0.079740546643734,-0.177143946290016,0.366814494132996,0.004838444758207,-0.013569062575698,0.092347629368305,0.011546450667083,0.011144202202559,-0.086924932897091,-0.079527333378792,-0.035471960902214) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.191835239529610,-0.016978753730655,0.094267867505550,-0.166080892086029,-0.044424623250961,-0.145351558923721,0.136431843042374,-0.055353596806526,0.286388248205185,-0.035957965999842,0.230281755328178,-0.153122305870056,-0.099441371858120,-0.076866261661053,0.004097158089280,0.106567218899727) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.008497921749949,-0.261194616556168,-0.154074415564537,0.009265873581171,-0.098795875906944,0.125659033656120,0.087767973542213,-0.223069429397583,-0.221768051385880,-0.045702893286943,-0.231600970029831,0.029567210003734,0.321436852216721,0.013399740681052,-0.000620165723376,-0.173070609569550) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.087471522390842,-0.102970540523529,-0.181710466742516,-0.116693295538425,-0.030264392495155,0.144415974617004,-0.049157340079546,-0.021215356886387,-0.084620274603367,-0.094267822802067,-0.090432092547417,0.086377389729023,0.102470450103283,0.086139731109142,0.026839945465326,0.181005641818047) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.062469616532326,0.099477551877499,-0.030898492783308,0.068543739616871,-0.113750971853733,-0.190599501132965,0.001729413401335,-0.073435105383396,-0.020081333816051,0.249681279063225,-0.048285830765963,0.007002199068666,0.048615314066410,-0.010269514285028,-0.104716449975967,0.095453463494778) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.003652042243630,0.078167341649532,0.051035474985838,0.123271800577641,0.251367688179016,0.247388213872910,0.054117076098919,0.242741569876671,-0.208702221512794,-0.109405219554901,0.005695227067918,-0.260712742805481,-0.061052054166794,0.006090299692005,0.023586617782712,-0.020265977829695) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.035189040005207,0.012180238962173,0.014346354641020,0.067388698458672,-0.089559249579906,0.010294042527676,-0.200491249561310,-0.137733876705170,0.061956468969584,-0.053413476794958,0.038841273635626,0.238771572709084,0.034844443202019,-0.067105486989021,0.096268564462662,-0.073637112975121) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.093658275902271,0.201371148228645,-0.015198979526758,-0.093001507222652,-0.344895690679550,-0.192411124706268,0.210997164249420,-0.002581228502095,0.351659595966339,0.317865580320358,-0.087089613080025,-0.163162395358086,-0.120459966361523,0.124768041074276,-0.036383386701345,0.110656566917896) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.225207358598709,-0.050098009407520,-0.303080558776855,-0.088556259870529,0.352714776992798,0.043276429176331,0.086518086493015,0.281565397977829,-0.352289646863937,-0.110151857137680,0.126695051789284,-0.075933784246445,0.092988930642605,-0.136795878410339,-0.053531687706709,-0.013182102702558) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.131346121430397,0.056958928704262,-0.160148352384567,0.477628439664841,0.071804851293564,-0.009584709070623,-0.214872598648071,-0.085731573402882,0.010041452944279,-0.120027229189873,0.187454864382744,0.182453677058220,-0.145436510443687,-0.105577878654003,-0.082893170416355,-0.197459116578102) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.102547749876976,0.142326891422272,-0.001988956937566,0.089401915669441,-0.449027061462402,-0.246084362268448,0.090880550444126,-0.203984737396240,0.085960566997528,-0.139981612563133,-0.142339631915092,-0.178701132535934,-0.084541022777557,-0.013357636518776,0.149294227361679,0.137590155005455) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.038764379918575,0.266081631183624,-0.084516957402229,0.279616326093674,0.185324192047119,0.091188497841358,-0.093543097376823,0.255185842514038,0.162372320890427,0.009083660319448,0.142696350812912,0.185403466224670,0.101637773215771,-0.069830171763897,-0.031532250344753,0.137222319841385) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.057123105973005,0.193710923194885,-0.131536677479744,0.168209806084633,-0.020973034203053,0.163649618625641,-0.251324534416199,-0.109921805560589,-0.080872014164925,0.025615395978093,-0.108051806688309,0.127728611230850,0.057988490909338,-0.083842322230339,-0.071640640497208,-0.048581894487143) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.007870254106820,0.301716715097427,0.075319759547710,0.104080677032471,0.045378271490335,0.062481779605150,0.033883936703205,-0.135560706257820,-0.161791220307350,0.043796379119158,-0.031936351209879,0.108094915747643,0.047806810587645,0.300814688205719,-0.092360690236092,0.168225467205048) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.043537594377995,-0.011334356851876,-0.070860393345356,-0.072695404291153,0.001836710143834,-0.103327013552189,0.031028794124722,0.027878798544407,0.072272337973118,0.061264615505934,0.228896930813789,0.074961952865124,0.038372170180082,0.042323790490627,-0.014718308113515,-0.110383346676826) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.065422274172306,0.035669706761837,-0.035041429102421,0.088644728064537,-0.042668025940657,-0.025167005136609,-0.124866522848606,0.250894457101822,-0.079619511961937,-0.106148108839989,0.001489712274633,-0.198262214660645,-0.033868856728077,-0.076295919716358,-0.101022265851498,0.268747925758362) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.314858943223953,-0.258155554533005,0.012304135598242,0.035807259380817,0.060437936335802,-0.028921406716108,0.144833326339722,-0.228035703301430,0.043958175927401,0.046307738870382,-0.086681351065636,0.466939121484756,0.312779307365417,0.057076506316662,0.132513567805290,-0.125424280762672) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.377133876085281,0.234739035367966,0.045640673488379,0.188840225338936,-0.117825105786324,0.050393622368574,-0.035294864326715,-0.171584978699684,0.251385241746902,0.356741487979889,-0.033581268042326,-0.230918332934380,-0.046917401254177,0.054336898028851,0.177780926227570,-0.085376866161823) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.252548277378082,0.047264795750380,-0.067479491233826,-0.040456876158714,-0.011587901972234,-0.079058393836021,-0.336141914129257,0.190934494137764,-0.015069167129695,-0.184169590473175,-0.182787239551544,-0.029736543074250,-0.137834623456001,0.223471209406853,-0.050715584307909,-0.057074997574091) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.110368400812149,-0.120355889201164,0.137929797172546,-0.090940639376640,0.081909544765949,-0.082319185137749,0.195835977792740,-0.107722483575344,-0.274711489677429,0.100048035383224,0.145217597484589,-0.084753453731537,-0.080959744751453,0.045338917523623,-0.122725956141949,-0.016818227246404) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.044885195791721,-0.130517318844795,-0.039444856345654,0.012657956220210,-0.062807120382786,0.051617927849293,0.236227378249168,-0.063648365437984,0.209935769438744,0.012768466025591,0.499698996543884,-0.151599630713463,0.169736117124557,-0.194967046380043,0.206574961543083,-0.179798662662506) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.053480036556721,0.022363228723407,-0.020496463403106,-0.066038675606251,-0.048779029399157,-0.165928289294243,-0.057615403085947,0.009062990546227,0.045321431010962,0.020122399553657,-0.145838662981987,-0.060220301151276,-0.057348363101482,-0.118666738271713,-0.146361127495766,0.055845629423857) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.000367364205886,0.051059767603874,-0.230936467647552,-0.125185415148735,0.024113282561302,-0.026638932526112,-0.000582761655096,-0.019207591190934,-0.031179534271359,0.219708904623985,-0.022495964542031,-0.032429113984108,0.042952571064234,0.021956663578749,0.090227574110031,-0.000884601264261) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.034190762788057,-0.113969728350639,-0.043467681854963,-0.089477092027664,-0.153936132788658,-0.164960682392120,0.156696781516075,-0.184646651148796,0.108054719865322,-0.017626712098718,0.050332445651293,-0.190979436039925,0.028717694804072,0.104858420789242,-0.144819915294647,0.003719226922840) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.032060552388430,0.136133313179016,-0.142155945301056,0.161047160625458,0.034022755920887,0.076946437358856,0.104525908827782,0.129936203360558,-0.079921312630177,-0.137156739830971,-0.230836868286133,0.236244887113571,0.064955972135067,0.105667948722839,-0.116753816604614,-0.043214011937380) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.054059911519289,0.006855896674097,-0.038441933691502,-0.061914756894112,0.074802324175835,0.126551747322083,-0.060777015984058,0.054576370865107,0.291684955358505,0.073888577520847,-0.039577379822731,-0.001472785719670,0.226848319172859,0.018098570406437,-0.068939991295338,-0.158091783523560) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.182580441236496,0.276575773954391,-0.099375836551189,0.102941356599331,-0.259359776973724,0.036343485116959,-0.266478747129440,-0.176007673144341,-0.217482388019562,-0.190454334020615,0.213380441069603,-0.295517444610596,-0.324739068746567,-0.308913379907608,0.194568797945976,-0.101343624293804) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.044502075761557,-0.000777657842264,-0.137906000018120,-0.064611911773682,0.119417093694210,-0.363595873117447,0.016789188608527,0.061863329261541,-0.112233318388462,-0.100615642964840,0.213700935244560,0.169263824820518,-0.112526409327984,-0.202989473938942,-0.099303975701332,0.167763918638229) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.094059541821480,0.035982772707939,-0.195504426956177,-0.228679999709129,0.068502724170685,0.005580658093095,0.046716760843992,0.089919865131378,0.260284721851349,-0.078358620405197,0.084681183099747,-0.012546284124255,0.334270119667053,-0.103717789053917,-0.066855117678642,0.056446805596352) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.035910170525312,-0.073457747697830,-0.048189029097557,0.069892555475235,0.196796864271164,-0.002455418696627,-0.061173077672720,0.053302958607674,0.054536622017622,0.035352312028408,-0.221916973590851,0.071521706879139,-0.146842822432518,0.370088249444962,-0.073489874601364,0.117395780980587) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.038162466138601,-0.118180960416794,0.021104255691171,0.058975826948881,-0.131142750382423,0.117127001285553,0.082836680114269,0.058900997042656,-0.158560082316399,-0.041951589286327,-0.126019418239594,0.125870004296303,-0.210975900292397,-0.007537592202425,-0.043764967471361,0.030446395277977) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.526532292366028,-0.006463818717748,0.318475633859634,-0.005898943170905) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_3x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(0.142720267176628,0.042963024228811,0.036552265286446,0.018673565238714);
res += mat4(0.077373407781124,-0.028032358735800,0.085634991526604,-0.038852203637362,0.101069480180740,-0.040050547569990,0.152303472161293,0.077316522598267,-0.149832189083099,0.030171103775501,-0.086752153933048,-0.002013052580878,0.059893377125263,0.117233090102673,0.049623481929302,0.032947711646557) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.000536098901648,0.038201890885830,0.024133138358593,0.019886976107955,0.005525949876755,-0.099980592727661,0.099086143076420,0.010658002458513,-0.006069718860090,-0.162935554981232,0.039648506790400,0.018353270366788,-0.037438668310642,-0.014987441711128,0.010817487724125,0.141182109713554) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.117892734706402,0.055477559566498,-0.096454232931137,-0.028276951983571,0.033106941729784,0.010683072730899,0.011182084679604,0.008397667668760,0.145064383745193,-0.104330241680145,0.008648412302136,-0.095473237335682,0.029821615666151,0.126658976078033,0.058057751506567,-0.067576184868813) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.017871480435133,0.021073358133435,0.038464527577162,-0.133018508553505,0.086854480206966,0.018948877230287,-0.046551950275898,0.016534633934498,-0.109240680932999,0.082565262913704,-0.080964513123035,0.165649324655533,0.043701324611902,0.008564666844904,-0.234722524881363,0.001029420294799) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.133723214268684,0.007982042618096,-0.098426803946495,0.087615318596363,0.264218091964722,-0.027315970510244,0.040456883609295,-0.010748902335763,0.135051757097244,0.104929968714714,0.189979597926140,0.055749487131834,0.084875449538231,-0.163018688559532,-0.103201851248741,0.031322464346886) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.010120130144060,-0.077545054256916,0.053401656448841,0.057709511369467,-0.042177747935057,0.004345900844783,-0.068280428647995,0.011525547131896,-0.044889762997627,0.061391681432724,-0.101188726723194,-0.052997436374426,0.146149948239326,-0.140302941203117,-0.230820924043655,-0.056259009987116) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.009098873473704,0.060040231794119,0.081766799092293,-0.154351085424423,-0.150369137525558,0.148522868752480,0.078336738049984,-0.039837356656790,0.163088127970695,-0.008107683621347,-0.078129924833775,0.110639102756977,-0.039937835186720,0.036171197891235,-0.064298495650291,-0.064030632376671) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.090322017669678,-0.014620067551732,-0.021186869591475,0.002782675903291,-0.119988478720188,-0.135015279054642,0.173177242279053,0.007477776147425,-0.206250444054604,-0.191520437598228,0.223010078072548,-0.177592396736145,-0.046558190137148,0.304812192916870,-0.148554548621178,-0.010390529409051) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.204965457320213,0.024892199784517,-0.082505509257317,-0.014002877287567,-0.035773247480392,0.028393203392625,0.017458051443100,0.006663669832051,-0.220523476600647,0.015500713139772,-0.208957806229591,-0.160262063145638,-0.102481216192245,-0.147716984152794,0.036481302231550,-0.164491489529610) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.111724257469177,-0.150528073310852,-0.218517050147057,0.116224735975266,0.184867471456528,0.019020499661565,-0.020304737612605,0.004974918905646,0.026083331555128,0.017243612557650,0.067987173795700,-0.124846696853638,-0.001176602439955,0.012023091316223,0.101738475263119,-0.085033573210239) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.170457199215889,0.117646209895611,-0.158191889524460,0.032758850604296,-0.123181790113449,0.091584093868732,0.057983241975307,0.018442291766405,0.063154280185699,0.073029972612858,0.121584385633469,-0.012939640320837,-0.020602846518159,0.030901616439223,-0.064647190272808,-0.047407634556293) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.012800844386220,0.033409819006920,-0.184838607907295,-0.014268125407398,0.014342589303851,-0.022442800924182,0.043579470366240,-0.011565354652703,0.112559646368027,0.008170885033906,-0.027395443990827,-0.042778301984072,-0.036156192421913,0.020478408783674,-0.054879032075405,0.153333261609077) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.319096535444260,0.239593267440796,0.237608000636101,0.547799468040466,-0.006007516756654,0.007481403648853,-0.101077988743782,0.301674991846085,-0.036172065883875,-0.246892005205154,0.029296176508069,-0.088808394968510,0.152904257178307,-0.122442021965981,0.268855839967728,-0.003149641444907) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.172752529382706,-0.353844463825226,0.198344364762306,-0.179673522710800,-0.144488394260406,-0.025444338098168,-0.187118127942085,-0.193384468555450,-0.092430643737316,0.071184568107128,0.150887131690979,-0.066116020083427,0.062289599329233,-0.002586931921542,-0.142778456211090,-0.294974446296692) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.087880246341228,0.048713847994804,0.029879871755838,0.066143684089184,-0.067166179418564,-0.023770982399583,-0.143522039055824,-0.065761253237724,0.022867100313306,0.146171614527702,0.065948419272900,-0.025172457098961,-0.130667507648468,-0.007610555738211,0.107655458152294,0.174737438559532) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.591076076030731,-0.288433223962784,0.098915241658688,-0.076275244355202,-0.007521249819547,0.053449466824532,0.134015515446663,0.043732397258282,-0.002927494700998,0.179242283105850,0.215514704585075,0.061860218644142,-0.209554269909859,-0.037368699908257,-0.008496972732246,-0.012205851264298) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.030986482277513,0.370525985956192,-0.148433357477188,0.046468637883663,0.186802893877029,-0.082406498491764,0.042161196470261,-0.091354057192802,-0.070582203567028,0.214195460081100,-0.131475269794464,-0.058977138251066,0.089436158537865,0.123644821345806,0.005507472902536,0.095270909368992) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.065834693610668,-0.013586699962616,0.121604703366756,0.039023932069540,-0.026461094617844,0.016686024144292,0.036905560642481,-0.045319277793169,-0.123425431549549,-0.015842741355300,-0.061637140810490,0.041563287377357,-0.046933513134718,-0.072140239179134,-0.173709735274315,-0.050476931035519) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.044102471321821,0.042110752314329,0.147354423999786,0.188248649239540,-0.056380417197943,-0.012587622739375,0.023503879085183,-0.148124590516090,-0.079874478280544,0.157157018780708,0.195001527667046,-0.036095503717661,0.035654358565807,0.043807104229927,-0.038902599364519,-0.019902814179659) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.004136777948588,-0.041816271841526,0.169735118746758,-0.137387946248055,0.033659972250462,-0.058301836252213,-0.126221582293510,-0.373968303203583,-0.085285849869251,0.049361657351255,-0.377394944429398,0.134576603770256,0.017777586355805,0.085854537785053,-0.028593730181456,0.027277467772365) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.071936324238777,-0.024072173982859,0.088239081203938,0.074784077703953,0.103472560644150,0.066284030675888,-0.144543379545212,-0.169212207198143,-0.039265077561140,-0.038976144045591,-0.024249745532870,-0.099016219377518,0.023446302860975,0.041985161602497,0.028450524434447,0.041139565408230) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.011081805452704,-0.019361522048712,-0.156755939126015,-0.083278521895409,-0.050881266593933,-0.151524260640144,0.013877682387829,-0.153159588575363,-0.042826835066080,-0.204679191112518,0.057069100439548,-0.273407787084579,-0.015501001849771,0.094838738441467,-0.032760862261057,0.076484397053719) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.150712698698044,0.045871485024691,-0.296155273914337,0.040285166352987,0.158469662070274,-0.133617192506790,0.117562405765057,-0.073112241923809,-0.100200854241848,-0.099805608391762,0.245710104703903,0.541696965694427,-0.044906649738550,0.148253872990608,-0.013302420265973,-0.138459667563438) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.065927661955357,0.124969340860844,-0.085073776543140,0.245824143290520,0.031471617519855,-0.172055229544640,0.092846877872944,-0.035599578171968,-0.101773522794247,0.146377041935921,0.288456678390503,0.252959191799164,0.141324371099472,0.078323625028133,-0.040454797446728,-0.004494643770158) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.161927983164787,-0.065915122628212,0.093129381537437,0.040092263370752,0.177073448896408,0.044947274029255,0.019813815131783,0.072355709969997,0.145756661891937,0.019619898870587,-0.223432853817940,-0.077824205160141,-0.070036701858044,-0.083012253046036,0.027009647339582,-0.154030472040176) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.022294951602817,-0.048219844698906,0.123644255101681,-0.133693009614944,-0.055547509342432,-0.015927860513330,0.124132081866264,-0.041782937943935,0.077005691826344,0.015958700329065,0.048117458820343,-0.076915144920349,-0.027399970218539,0.054087750613689,-0.171843737363815,-0.080067053437233) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.127033114433289,-0.022857826203108,0.042405802756548,0.023716287687421,-0.075981311500072,-0.060230001807213,-0.135537937283516,0.070588119328022,-0.290733784437180,0.181255176663399,-0.146222367882729,-0.064326807856560,0.072499111294746,0.208728283643723,-0.176874160766602,0.116943441331387) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.074098549783230,0.053025443106890,0.077757708728313,-0.005286517553031,0.142876863479614,0.031079761683941,-0.062214065343142,0.154798105359077,-0.100005164742470,-0.095809273421764,0.110524982213974,-0.425559192895889,0.004201898816973,-0.064839914441109,-0.025485126301646,-0.280880302190781) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.007078244816512,-0.045321621000767,-0.171918317675591,-0.163130551576614,-0.089251637458801,-0.162120684981346,0.112562559545040,-0.192148759961128,0.020365590229630,0.154808714985847,0.029566440731287,0.161719426512718,-0.132855102419853,0.062012165784836,0.142741411924362,0.087536364793777) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.016935538500547,-0.118559703230858,-0.066974692046642,0.104590035974979,-0.203411757946014,0.061768520623446,0.014795179478824,-0.067498698830605,0.165683299303055,-0.131108373403549,-0.257980674505234,0.162871435284615,0.062258217483759,0.018295116722584,-0.150665104389191,0.052618667483330) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.011699219234288,-0.155588567256927,-0.246660947799683,-0.084719471633434,0.061393503099680,-0.167770043015480,-0.018591949716210,0.274097681045532,0.143150120973587,0.210818558931351,-0.139735385775566,-0.092764779925346,0.003672148101032,-0.081567689776421,0.037637282162905,-0.283654958009720) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.119798593223095,-0.159243866801262,-0.124786972999573,0.117809787392616,-0.156016618013382,0.212062239646912,-0.043090369552374,-0.176420673727989,-0.156141310930252,-0.247414737939835,0.143862336874008,0.113511502742767,0.038506895303726,-0.004017472267151,0.025510516017675,0.050799772143364) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.073376551270485,-0.001136589678936,-0.156589582562447,0.070585221052170,-0.025052929297090,-0.119814440608025,0.051222380250692,0.008449708111584,-0.095279768109322,0.244854316115379,0.042055577039719,0.050862506031990,0.021299822255969,-0.266549319028854,0.110154077410698,0.167588770389557) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.058013841509819,-0.027508718892932,0.046308614313602,0.144314020872116,-0.161913186311722,-0.117624402046204,0.130359292030334,0.125900343060493,-0.167059913277626,0.077309198677540,-0.094522513449192,0.084711320698261,0.106335490942001,-0.132098332047462,-0.035045906901360,0.000874010496773) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.041475430130959,0.038663201034069,-0.062005501240492,0.076875060796738,0.021131750196218,-0.057459224015474,0.013782909139991,-0.176346585154533,0.241240739822388,-0.181918352842331,0.024565957486629,-0.105070777237415,0.031750693917274,0.008801775984466,0.124153561890125,-0.006684175226837) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.073138959705830,-0.220881685614586,0.079346016049385,0.049928478896618,-0.084696531295776,-0.047658603638411,-0.104828640818596,-0.051077112555504,0.008121188730001,-0.139149412512779,-0.014550334773958,-0.032465294003487,-0.035059526562691,0.165913566946983,-0.002137043979019,-0.067867152392864) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.004798192996532,-0.050536964088678,0.114571467041969,0.061218980699778,-0.105451658368111,0.047612950205803,0.078655488789082,-0.199242934584618,0.026746897026896,0.105199255049229,0.042449332773685,0.005475246813148,0.126759633421898,0.126247584819794,-0.234755337238312,0.035546727478504) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.084377706050873,0.042540207505226,0.011333984322846,-0.003921049647033,0.102580204606056,0.101862624287605,0.007678645662963,0.027470545843244,-0.136027157306671,0.018215622752905,-0.140842542052269,-0.132652133703232,-0.240776136517525,0.015070171095431,0.263223856687546,-0.125417247414589) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.024306476116180,-0.049010824412107,-0.012869942933321,-0.008831690996885,0.104900285601616,-0.038905896246433,0.026241067796946,0.054737087339163,-0.065686710178852,0.029803585261106,0.134660229086876,0.053385064005852,-0.309375524520874,0.014276700094342,-0.302147746086121,0.012796899303794) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.090226359665394,0.065242521464825,0.000327705289237,0.132700577378273,-0.044805575162172,-0.036312077194452,-0.122022040188313,-0.188056632876396,-0.079985395073891,-0.237254157662392,-0.180784299969673,0.064588934183121,0.161750838160515,0.144518986344337,-0.387556493282318,0.224800214171410) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.004809670150280,-0.046217467635870,0.001926005701534,-0.270490676164627,0.034725859761238,-0.040286548435688,0.015402894467115,0.079212799668312,-0.037743587046862,-0.037490036338568,0.041533421725035,-0.152164235711098,-0.342531949281693,-0.163531899452209,0.036469757556915,0.004871849901974) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.020434781908989,-0.010474477894604,-0.046911854296923,0.076217770576477,0.162343114614487,-0.012130462564528,0.119618169963360,0.113316349685192,-0.033319532871246,-0.097240872681141,0.043162852525711,0.029448132961988,-0.158300355076790,-0.100453667342663,-0.269115477800369,-0.029715653508902) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.069346010684967,0.019210210070014,-0.013678425922990,-0.029557883739471,-0.198833674192429,-0.006732320878655,0.084937602281570,-0.014310700818896,0.128463178873062,0.233189940452576,-0.283796101808548,0.218062013387680,0.004266492091119,0.082597360014915,-0.209722980856895,0.037315011024475) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.061468001455069,0.090046398341656,-0.095846675336361,-0.001055136206560,-0.163336783647537,0.186970770359039,-0.212567403912544,0.084277726709843,-0.063499607145786,0.159470081329346,0.066549196839333,0.005207575391978,-0.213320270180702,-0.117084167897701,-0.028046850115061,0.173852786421776) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.055634532123804,-0.050314567983150,-0.017833417281508,0.052233297377825,0.045212820172310,-0.124516926705837,0.184016257524490,0.263388991355896,0.190330103039742,0.067869544029236,0.094321846961975,0.027977228164673,0.102896161377430,0.129745796322823,-0.201260626316071,0.017858318984509) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.055243667215109,0.004730874206871,0.009761752560735,0.107443735003471,-0.122912719845772,0.022497670724988,-0.124885909259319,-0.120889492332935,-0.106435500085354,0.021112291142344,0.130091443657875,-0.301676958799362,0.000973021786194,0.172543957829475,-0.057070411741734,-0.006069703027606) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.043613016605377,0.008619524538517,-0.053984973579645,-0.041742745786905,-0.188937142491341,0.138782858848572,-0.023518647998571,-0.007512541953474,0.131393447518349,0.082606934010983,-0.285685867071152,0.323910802602768,0.238897100090981,-0.170893758535385,0.128703057765961,-0.111615657806396) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.058347169309855,0.033082690089941,-0.123704396188259,-0.014810044318438,0.111377835273743,-0.080664165318012,0.090119212865829,0.080322019755840,-0.008624099195004,0.005034985952079,0.149434089660645,-0.005822933278978,-0.008346665650606,-0.042571756988764,-0.114949285984039,0.026872193440795) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.150794997811317,0.091004796326160,0.061704430729151,0.038575634360313,0.109226025640965,-0.049450710415840,0.064983442425728,-0.173529431223869,-0.027027091011405,0.191692441701889,-0.192020729184151,-0.235007464885712,-0.128063231706619,-0.040862563997507,-0.052898362278938,-0.156211689114571) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.033083088696003,-0.184740871191025,0.127798035740852,-0.050843402743340,0.056021548807621,0.011391161009669,-0.041313227266073,0.037269957363605,0.039663024246693,-0.113412946462631,0.043679542839527,0.183695748448372,-0.141812846064568,0.016626326367259,0.061804097145796,0.132575929164886) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.179340943694115,-0.117313861846924,-0.129724234342575,-0.095946580171585,0.195918723940849,-0.022248694673181,0.085132747888565,0.079889237880707,-0.095680952072144,0.107037164270878,-0.220700293779373,0.026257578283548,0.121606990695000,0.191579088568687,-0.062647692859173,0.063574545085430) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.052623614668846,0.028974082320929,0.100129187107086,-0.019218517467380,-0.167003452777863,0.004035236779600,0.022395238280296,0.102878488600254,0.341427952051163,0.252092331647873,-0.046656284481287,-0.002058702521026,0.288728892803192,0.007635059300810,0.060463503003120,-0.180334538221359) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.164964199066162,-0.017482608556747,0.100363120436668,0.022858286276460,0.078297153115273,-0.061314307153225,-0.120046004652977,-0.045635804533958,0.024022316560149,-0.622284650802612,0.070065788924694,-0.082402102649212,-0.094802290201187,-0.322630435228348,0.065944604575634,0.032614529132843) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.032469019293785,-0.032880492508411,-0.260239958763123,0.019112553447485,-0.041777554899454,0.017498219385743,0.115344010293484,-0.014249335043132,-0.090236455202103,-0.086802467703819,0.002257489133626,-0.162332087755203,-0.035080406814814,-0.017314435914159,0.018968157470226,0.189422741532326) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.668802797794342,0.351965874433517,0.503104507923126,-0.069525487720966) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_3x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(0.012816095724702,-0.351000756025314,-0.070968449115753,0.119919225573540);
res += mat4(-0.201247781515121,0.026012064889073,0.099605381488800,0.014044489711523,-0.080043345689774,-0.080269947648048,-0.147959724068642,0.068888306617737,0.125201776623726,-0.048491995781660,0.053715139627457,-0.016039565205574,0.001445591798984,-0.074660181999207,0.025597061961889,0.035720624029636) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.059510156512260,0.042475946247578,0.056959610432386,-0.012741936370730,-0.228182330727577,-0.062708720564842,0.037229292094707,-0.074276238679886,0.007105519063771,-0.043935857713223,-0.017970731481910,-0.147700712084770,0.061976715922356,-0.049177888780832,-0.008125468157232,0.124078512191772) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.063095130026340,0.080924645066261,-0.040060974657536,0.046446755528450,0.037830889225006,0.041254960000515,0.019454713910818,0.008733752183616,-0.202002868056297,-0.042820729315281,-0.041826337575912,-0.136248394846916,0.146442905068398,-0.059620633721352,0.109784111380577,-0.066827096045017) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.103131540119648,-0.032896559685469,0.074426226317883,-0.079051010310650,0.097676195204258,0.060829117894173,-0.344952017068863,-0.230811268091202,-0.044753886759281,0.031030450016260,0.012047904543579,-0.030203303322196,0.138567656278610,-0.036989495158195,0.026876360177994,0.142533063888550) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.055426087230444,0.098935261368752,0.018485579639673,0.086576096713543,-0.051993872970343,-0.082752890884876,0.123996898531914,0.258924394845963,-0.111114554107189,-0.024817563593388,-0.005839727818966,-0.037281200289726,-0.093065865337849,0.115718401968479,0.073052868247032,-0.015247784554958) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.102721370756626,0.031932502985001,0.005140405613929,0.041039727628231,0.053553864359856,0.034915450960398,0.011324426159263,-0.052101980894804,0.077107392251492,0.111665166914463,-0.041654378175735,0.167935237288475,0.023020952939987,0.249115392565727,0.091361999511719,-0.085950441658497) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.065236113965511,-0.014105218462646,0.213591083884239,-0.083643376827240,0.099242866039276,-0.145815774798393,0.089292019605637,-0.019312456250191,-0.096477769315243,-0.047869116067886,0.049472551792860,-0.091835618019104,0.121892958879471,-0.060130756348372,0.077379576861858,0.044200077652931) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.038204777985811,0.162767887115479,-0.038670528680086,0.006910460535437,-0.042971093207598,0.016740212216973,0.089754126966000,-0.106068603694439,-0.044407311826944,0.090011060237885,0.017510369420052,0.179094180464745,-0.052360169589520,-0.061674684286118,-0.112894989550114,0.014697620645165) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.059854760766029,0.116967521607876,0.012432594783604,-0.114797331392765,-0.086014389991760,-0.052850145846605,0.072911575436592,0.049990035593510,0.097179688513279,0.041441615670919,-0.102644175291061,-0.082961745560169,0.157175838947296,-0.080633349716663,0.118105508387089,0.164127185940742) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.006256163585931,0.002799496287480,-0.050356980413198,0.015576677396894,-0.158245697617531,0.061904132366180,-0.057948458939791,-0.012053669430315,0.029363453388214,-0.065511882305145,0.094574913382530,-0.038607399910688,-0.013958344236016,0.082544222474098,0.020063970237970,-0.039775107055902) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.383515030145645,-0.290261626243591,0.072976328432560,-0.179569005966187,-0.089229553937912,-0.058827467262745,-0.117595456540585,-0.025976620614529,0.195779591798782,0.185111582279205,0.041656605899334,-0.054446253925562,0.013614009134471,-0.114240825176239,0.012143211439252,0.041971199214458) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.029449734836817,0.223587974905968,0.097348608076572,-0.121989272534847,-0.046910602599382,0.065038390457630,-0.034274388104677,-0.043480478227139,-0.062749579548836,-0.111004143953323,-0.053985949605703,-0.017002608627081,-0.003030456602573,0.173875391483307,-0.086977437138557,-0.003282715333626) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.430734843015671,0.019764397293329,-0.423636913299561,-0.496020138263702,-0.096612662076950,-0.001053672400303,-0.148236766457558,0.199383243918419,0.069173492491245,-0.041612472385168,0.156781092286110,-0.026966892182827,-0.040122658014297,0.049449276179075,-0.035525381565094,-0.091389119625092) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.419061392545700,0.088089652359486,0.307696551084518,0.523636221885681,0.088196687400341,-0.103950768709183,0.574303090572357,0.099598541855812,-0.012743649072945,0.135474801063538,0.018940590322018,0.016443666070700,0.220539689064026,-0.038259450346231,0.157552793622017,0.202554866671562) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.155457511544228,-0.145399808883667,0.160125240683556,0.173546522855759,0.014021798968315,-0.043047752231359,-0.121657535433769,-0.016883354634047,-0.134792283177376,-0.065586701035500,0.050248850136995,0.126679867506027,-0.237310573458672,0.048487171530724,-0.221873328089714,-0.304853826761246) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.041020888835192,0.052208740264177,-0.036493290215731,0.173905670642853,-0.014393845573068,0.135592728853226,-0.113863497972488,0.066566564142704,0.009073456749320,-0.003512940136716,0.172180756926537,-0.128479465842247,0.018136471509933,-0.058728542178869,0.080091930925846,0.055343884974718) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.051225122064352,-0.126110196113586,-0.094774901866913,-0.246489912271500,0.264884024858475,-0.044624645262957,-0.115535110235214,-0.079759977757931,-0.048970181494951,0.131779789924622,-0.094704598188400,0.198530986905098,-0.054300863295794,-0.022650450468063,-0.170448109507561,-0.258875131607056) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.019426666200161,0.125160858035088,-0.066169776022434,0.114952452480793,-0.083119213581085,0.032576654106379,-0.093817017972469,0.031611919403076,0.043135628104210,-0.090109147131443,-0.096550293266773,-0.249145433306694,0.055450506508350,-0.002423732075840,0.100169949233532,0.203736007213593) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.130395099520683,-0.115733712911606,0.038716189563274,0.127573117613792,-0.047411702573299,0.099229738116264,-0.144800916314125,-0.078044764697552,0.119900725781918,0.033233176916838,0.004900143481791,-0.011484376154840,0.029977209866047,0.001144319772720,-0.006539687514305,-0.018989615142345) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.475607246160507,-0.330589294433594,0.142495974898338,0.073872588574886,-0.261657387018204,0.133109882473946,-0.365849375724792,-0.238952964544296,-0.053593173623085,0.163435876369476,-0.026141831651330,0.016099324449897,0.072625249624252,0.049377355724573,0.029753943905234,0.055146791040897) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.065163463354111,-0.074659556150436,0.010613612830639,-0.075069732964039,-0.402940303087234,-0.219582214951515,0.189646333456039,-0.142916545271873,0.038871340453625,-0.125608772039413,-0.080194115638733,-0.060500442981720,0.036238048225641,-0.099629685282707,-0.028514530509710,-0.051076009869576) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.027067525312304,0.103299811482430,-0.074049100279808,0.103077158331871,0.029209695756435,-0.006449584383518,-0.034600503742695,0.194609567523003,0.171357899904251,-0.017942994832993,-0.027316482737660,0.231062829494476,-0.006610907148570,0.059879783540964,-0.092749774456024,0.050433892756701) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.086436636745930,0.287659406661987,-0.328930914402008,-0.129702374339104,-0.219731077551842,0.133809074759483,-0.580593705177307,-0.094658300280571,-0.082388237118721,0.113175995647907,0.039517015218735,0.021949097514153,0.110936708748341,0.074972726404667,0.014399476349354,0.007312803529203) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.004881497938186,0.007455623243004,-0.022033054381609,0.084098272025585,0.298619240522385,-0.001623027026653,0.328981995582581,-0.113866001367569,0.076722145080566,0.108311012387276,0.023112310096622,-0.123609140515327,-0.097885742783546,0.006782233249396,-0.010950825177133,-0.015183730050921) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.128128781914711,0.120673537254333,-0.186821252107620,-0.009979587048292,-0.014438211917877,-0.056066382676363,-0.119197815656662,-0.169918820261955,-0.021594297140837,-0.129144936800003,-0.045509539544582,-0.008026526309550,-0.001702106324956,-0.010392351076007,0.074792183935642,-0.090085439383984) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.009290652349591,-0.002690941328183,-0.212539404630661,0.135405331850052,0.134367629885674,0.142767995595932,-0.182739973068237,-0.056284766644239,0.082164086401463,0.093329370021820,0.049192737787962,0.091906815767288,0.152160450816154,0.061038590967655,0.167398437857628,0.086647987365723) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.008480280637741,0.012194875627756,-0.102936416864395,-0.108491837978363,0.101447202265263,-0.013928772881627,-0.248577833175659,-0.086535185575485,0.146253213286400,0.075195826590061,-0.133410662412643,-0.105704389512539,-0.133744865655899,-0.052618630230427,0.221215814352036,0.098372571170330) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.045375227928162,0.043345745652914,0.149266883730888,-0.101822108030319,-0.075383417308331,-0.029146492481232,-0.139757350087166,0.025198366492987,0.175959676504135,0.017921507358551,0.060567636042833,-0.003018049756065,-0.020101742818952,-0.057391796261072,0.050378050655127,-0.114129327237606) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.049617420881987,-0.065511293709278,0.053802292793989,0.036503516137600,0.144374951720238,0.037059277296066,0.097532309591770,-0.059132430702448,-0.162465646862984,0.109064176678658,-0.174106821417809,0.071016915142536,-0.044835101813078,0.098527185618877,-0.005192990414798,0.027359319850802) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.142962336540222,-0.219783902168274,0.066132061183453,0.016262140125036,-0.132545888423920,-0.142255708575249,-0.119768470525742,-0.124238312244415,0.150741919875145,-0.108163334429264,-0.000307269423502,0.006710106041282,0.120146021246910,0.153437599539757,-0.074502460658550,0.158616259694099) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.229217186570168,-0.123717516660690,0.211752846837044,0.183218941092491,-0.171601101756096,0.059841606765985,-0.160056307911873,-0.143840342760086,0.033347267657518,0.070709265768528,0.068409167230129,0.092215478420258,0.055237162858248,-0.183677121996880,-0.034134868532419,-0.073594674468040) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.080690145492554,-0.018398135900497,-0.069890901446342,-0.041485719382763,0.082687437534332,-0.080052867531776,0.086417108774185,0.091439075767994,-0.322223156690598,-0.117123536765575,-0.076540410518646,-0.097099669277668,0.008627133443952,0.256250619888306,-0.124413505196571,0.076959028840065) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.043009780347347,0.140838384628296,0.017450582236052,0.295783191919327,0.045461054891348,-0.055679250508547,-0.047434117645025,-0.009238251484931,0.010417626239359,0.222414165735245,-0.076493993401527,0.028386296704412,0.021650677546859,-0.043855257332325,-0.176206439733505,0.106453716754913) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.015742093324661,0.052910979837179,0.063007764518261,-0.096163719892502,-0.225191816687584,-0.014463330619037,-0.236874535679817,-0.175885140895844,0.013965498656034,0.065204516053200,-0.096454486250877,-0.212097302079201,-0.093358129262924,-0.149924695491791,0.140574738383293,-0.089693062007427) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.007040705066174,0.058422874659300,0.143760889768600,-0.169454842805862,0.149769306182861,0.141648486256599,0.088065020740032,0.177918836474419,0.132328107953072,0.045721318572760,0.146511510014534,0.186323389410973,-0.075297430157661,0.031407736241817,0.007627612445503,0.002889076480642) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.069615639746189,-0.031069394201040,0.132894575595856,0.000658010074403,-0.145027264952660,-0.054614465683699,-0.106681212782860,0.085588417947292,-0.002964312909171,-0.100803531706333,0.066564559936523,0.001242676866241,0.110928699374199,0.014224764890969,0.057750988751650,-0.004127799533308) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.075357459485531,0.090371847152710,0.095783859491348,-0.073420390486717,0.138763591647148,0.010199957527220,0.082905225455761,0.015272743999958,-0.064637020230293,-0.015490184538066,0.363465070724487,0.037504784762859,-0.120391070842743,0.032306227833033,0.107387423515320,-0.120780512690544) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.062698505818844,0.045451406389475,-0.052548341453075,-0.024165410548449,0.097695335745811,0.064706645905972,-0.005770948715508,-0.002684015547857,-0.140310898423195,-0.205394163727760,0.017491422593594,0.018444430083036,-0.305427432060242,-0.095193848013878,0.003767851041630,-0.004862616769969) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.024918634444475,0.004363246262074,-0.063840068876743,0.115947574377060,0.140820279717445,0.012700219638646,-0.073321089148521,0.144044056534767,0.076578766107559,0.092330992221832,0.009716306813061,0.002851149765775,0.035401683300734,0.100912541151047,0.130132690072060,-0.078014515340328) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.095051713287830,0.062861591577530,-0.063556089997292,-0.023651128634810,-0.144673824310303,0.040637943893671,-0.030246933922172,-0.099243186414242,0.344936460256577,0.057751253247261,0.343769639730453,-0.063063539564610,-0.064051277935505,0.045563377439976,0.095973283052444,-0.053967189043760) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.100728385150433,-0.005950416903943,0.295652061700821,-0.132464632391930,-0.101683795452118,0.307381600141525,-0.277177095413208,-0.252069205045700,0.170465245842934,-0.260350346565247,0.214212045073509,-0.041319523006678,-0.188950926065445,-0.022717908024788,0.145754486322403,0.146225467324257) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.160093083977699,0.033015351742506,-0.035629760473967,-0.061100285500288,-0.045912824571133,0.122609414160252,-0.231891900300980,-0.008205973543227,0.056390378624201,-0.041032597422600,-0.133650884032249,-0.019206598401070,-0.126154646277428,-0.048840191215277,-0.005072331055999,-0.058494001626968) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.083656638860703,-0.074454210698605,-0.006644731853157,0.008034460246563,0.054508306086063,0.179247558116913,-0.166637539863586,-0.078499212861061,0.064274832606316,0.047541711479425,-0.075472339987755,-0.018639599904418,-0.079026415944099,-0.065698951482773,0.126507952809334,-0.084845729172230) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.132844507694244,-0.066129416227341,0.029864007607102,0.016475657001138,-0.066339619457722,0.137941196560860,-0.200793668627739,-0.047513823956251,0.009150097146630,-0.212050318717957,-0.318880975246429,-0.075826123356819,-0.093403503298759,0.013682938180864,-0.052057556807995,-0.031031873077154) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.075800739228725,-0.033129312098026,0.041018497198820,0.075976334512234,-0.214594632387161,-0.045080687850714,-0.124131634831429,-0.054311666637659,-0.023298021405935,-0.130999460816383,-0.076225809752941,0.128771513700485,-0.053116045892239,-0.043662600219250,-0.002349078189582,0.027953103184700) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.042507879436016,-0.102051280438900,0.088368847966194,-0.064141266047955,0.079669177532196,-0.165569856762886,0.068939633667469,0.080905981361866,0.273463338613510,0.056144963949919,0.182530581951141,0.118876382708549,0.057041313499212,0.133282631635666,-0.052457492798567,0.017591129988432) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.106081724166870,-0.006522457581013,-0.107106953859329,0.173637017607689,0.126720860600471,0.162208467721939,-0.061918314546347,-0.090757764875889,-0.149450466036797,0.131228208541870,-0.169599935412407,-0.085936978459358,0.210962876677513,0.041484266519547,0.094357818365097,0.109256677329540) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.332011729478836,-0.099418804049492,-0.028515987098217,-0.010550198145211,0.101102180778980,0.069715023040771,0.035202633589506,0.078381896018982,0.014068191871047,-0.014727723784745,-0.031936045736074,0.002766435034573,0.196520358324051,-0.052994333207607,0.155835092067719,-0.008179237134755) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.065813906490803,0.038856726139784,0.109848260879517,-0.077587880194187,-0.032033026218414,-0.070603720843792,-0.053818091750145,0.062672480940819,-0.037040334194899,-0.140671700239182,0.089263856410980,0.220688417553902,-0.200212657451630,-0.080664217472076,-0.084485441446304,-0.101386860013008) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.124226488173008,0.055941496044397,0.065685518085957,-0.017403282225132,-0.103603087365627,-0.101050205528736,-0.108064316213131,-0.207738742232323,-0.619469285011292,0.120626449584961,-0.247464671730995,-0.226772993803024,-0.300340712070465,0.044102504849434,-0.085488095879555,-0.206607520580292) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.144063279032707,0.094283945858479,-0.037566881626844,-0.092510163784027,-0.119514539837837,0.008964965119958,0.055396694689989,0.013493456877768,-0.013260657899082,0.194275304675102,-0.044405501335859,0.234163865447044,-0.043798286467791,0.062405113130808,-0.137025773525238,0.216596737504005) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.011407742276788,0.066446110606194,0.129538238048553,-0.085782840847969,-0.114951305091381,-0.026209268718958,-0.022531945258379,-0.058293018490076,0.130972743034363,0.052040264010429,0.116971880197525,0.026357766240835,-0.014118198305368,0.148768156766891,0.123603828251362,0.010135446675122) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.011724004521966,-0.018708815798163,0.149440735578537,-0.120374090969563,0.053344849497080,0.122360803186893,0.155581146478653,-0.037148885428905,0.113920643925667,-0.001899313298054,0.234660625457764,0.209314063191414,0.231463283300400,0.143538385629654,0.201562136411667,0.211091488599777) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.105026744306087,-0.007715363521129,0.071931928396225,-0.153816968202591,0.008621463552117,0.060436859726906,0.078789964318275,0.169650644063950,0.224937528371811,0.169961899518967,0.267166942358017,-0.028331320732832,0.025790486484766,-0.107621416449547,0.096393734216690,-0.169732615351677) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.098652705550194,0.275583148002625,0.028930677101016,0.266725987195969) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_3x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(-0.197389513254166,-0.035416740924120,-0.147492021322250,0.048816196620464);
res += mat4(0.123227223753929,0.032018117606640,-0.057107955217361,0.100478045642376,-0.061078283935785,-0.211228832602501,-0.210056424140930,-0.060850195586681,-0.038883242756128,0.027874961495399,0.032385755330324,-0.135762274265289,0.003249069675803,0.002299116924405,0.109055399894714,-0.007618254516274) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.067935802042484,-0.062981508672237,0.191872850060463,-0.153903722763062,-0.043512441217899,0.005641927476972,-0.064990028738976,-0.036462876945734,0.026659531518817,-0.071732886135578,0.028496315702796,0.087348386645317,-0.259979665279388,-0.078802898526192,0.049943204969168,0.174238622188568) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.030361237004399,0.012886974960566,-0.172047227621078,0.102552868425846,-0.010584446601570,-0.012545455247164,0.032767977565527,-0.030997525900602,0.066467046737671,0.037798393517733,0.178772196173668,-0.060621712356806,0.100118309259415,-0.028571985661983,-0.168699890375137,0.052361451089382) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.029795806854963,-0.013516981154680,0.051217954605818,-0.039257049560547,-0.277888029813766,-0.043457277119160,-0.123070664703846,-0.249155670404434,0.110476039350033,0.316331923007965,-0.175552487373352,-0.019768334925175,-0.045624915510416,0.139378875494003,-0.064560197293758,0.017754172906280) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.100058943033218,0.022837061434984,0.089390203356743,-0.105362437665462,-0.083772756159306,0.106233470141888,0.043996255844831,-0.042916532605886,0.187336713075638,-0.221504077315331,0.067867994308472,-0.015174406580627,-0.285774320363998,-0.026476465165615,-0.083499386906624,0.233276456594467) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.003949687350541,-0.111310437321663,0.024771606549621,0.155340552330017,0.057633016258478,0.028101628646255,0.000903506064788,0.062635526061058,-0.121962934732437,-0.143947213888168,-0.142538577318192,-0.144444793462753,0.018858825787902,0.327788323163986,-0.173229232430458,0.163017064332962) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.083029657602310,0.090210415422916,-0.195812404155731,0.021604035049677,-0.137519255280495,0.067688092589378,-0.245141178369522,-0.064031146466732,-0.206636145710945,-0.000783904339187,0.074314497411251,0.050615753978491,0.044040244072676,0.120519019663334,0.144879117608070,0.150404483079910) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.046335853636265,0.040356732904911,0.028247604146600,0.112124077975750,-0.101062335073948,0.004678077995777,0.023440510034561,0.085260801017284,0.031256414949894,-0.031207179650664,0.038950733840466,-0.031528890132904,0.045883946120739,0.123226188123226,0.184186428785324,0.153202369809151) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.042787030339241,-0.048548769205809,-0.051317073404789,-0.067494824528694,-0.051694933325052,-0.000310072879074,-0.090694665908813,-0.040565382689238,0.148075833916664,0.191814318299294,-0.087765969336033,0.023954194039106,-0.002141925506294,0.207364588975906,0.098007969558239,0.098093211650848) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.044908177107573,0.018153289332986,-0.270564109086990,-0.152709767222404,-0.198346585035324,0.076892524957657,0.025966554880142,0.047421641647816,0.091412104666233,0.120330534875393,0.044146575033665,0.097529068589211,-0.030206624418497,-0.144431546330452,-0.151182949542999,0.016800697892904) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.117562353610992,0.052252050489187,0.184405371546745,-0.036258213222027,0.154068842530251,-0.053035847842693,0.108584672212601,-0.095572963356972,0.007271643262357,-0.073436118662357,0.025657147169113,0.064260326325893,-0.043674048036337,-0.080976992845535,0.175570845603943,-0.044269453734159) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.134891733527184,0.039241749793291,0.083504863083363,-0.140917450189590,-0.109770886600018,-0.049669422209263,-0.050893381237984,0.081063754856586,0.069673307240009,-0.063701599836349,-0.029612084850669,0.050816982984543,0.081518612802029,0.123540237545967,-0.200889453291893,0.130900219082832) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.207390323281288,-0.101529084146023,-0.069606378674507,-0.086475692689419,-0.074932374060154,-0.122953638434410,0.052960313856602,0.065879203379154,0.173890680074692,-0.007745195180178,-0.119098722934723,0.060305137187243,0.163419052958488,0.015258421190083,0.185231402516365,-0.077256225049496) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.307161957025528,-0.302051126956940,0.052460029721260,-0.066015034914017,0.129796430468559,-0.027445675805211,0.052512995898724,0.048644527792931,0.102672062814236,0.159195855259895,0.099375084042549,-0.078212097287178,-0.048015173524618,0.002989787841216,-0.126327991485596,0.140107840299606) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.026159020140767,0.007731329184026,0.162602335214615,0.215042307972908,0.132642731070518,-0.023240730166435,-0.255004942417145,-0.013721565715969,0.049206092953682,-0.078079625964165,0.117105074226856,0.196284994482994,0.061271727085114,-0.030948925763369,0.173351570963860,0.006578547880054) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.056939732283354,0.105628393590450,-0.015354086644948,-0.172252431511879,-0.129579707980156,0.058313660323620,0.012828162871301,-0.187263295054436,0.245074674487114,-0.093125805258751,-0.020344948396087,-0.061120253056288,-0.057014882564545,0.217779502272606,0.070052035152912,-0.010546840727329) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.372782677412033,0.102838858962059,-0.131526172161102,0.118198215961456,0.107738941907883,-0.073852926492691,-0.022870887070894,0.050623591989279,0.039424367249012,0.301591157913208,0.250075817108154,-0.047197952866554,0.089413218200207,-0.015101604163647,-0.052313894033432,-0.052037991583347) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.006053355988115,-0.025979101657867,0.075980901718140,0.105880729854107,-0.072211578488350,0.070064090192318,-0.067396655678749,-0.158096954226494,0.243803516030312,0.047176565974951,0.112371668219566,0.139727294445038,-0.114916563034058,-0.113522619009018,-0.015832718461752,-0.112801335752010) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.186113044619560,-0.123899422585964,0.014553346671164,-0.088272847235203,0.108829416334629,-0.032577197998762,0.002281490713358,-0.020152395591140,-0.005145845469087,-0.045990001410246,0.422975987195969,0.071651428937912,-0.000498028239235,-0.018804376944900,0.069953747093678,0.116891756653786) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.184750780463219,-0.204011902213097,-0.033296082168818,0.305854737758636,0.100896604359150,-0.150756180286407,0.085738413035870,-0.156295418739319,-0.076843701303005,-0.279419869184494,0.085535570979118,0.145019307732582,-0.084659978747368,-0.062429036945105,-0.046620000153780,-0.089319296181202) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.164801210165024,0.059765990823507,0.032826818525791,-0.151066198945045,-0.221284717321396,-0.259622752666473,0.213332101702690,-0.329453617334366,0.081142753362656,-0.201164677739143,-0.040614407509565,-0.027643417939544,-0.081756345927715,-0.165130823850632,-0.039328522980213,-0.102287642657757) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.015192957594991,0.169730752706528,-0.105480566620827,0.022910257801414,0.168882623314857,-0.048294384032488,-0.172084704041481,-0.175902903079987,0.077408201992512,0.167263537645340,0.109764695167542,0.100039064884186,-0.135252431035042,-0.133883208036423,0.076968863606453,-0.007454624865204) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.184214815497398,0.091274194419384,-0.046429820358753,-0.039443563669920,-0.002117662690580,-0.024939393624663,-0.035474926233292,-0.470438003540039,-0.208883196115494,0.139719203114510,-0.206608220934868,0.030121039599180,-0.129839077591896,-0.017474256455898,-0.192366138100624,0.066719479858875) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.152673050761223,0.023725844919682,-0.044289793819189,0.056316267699003,-0.276115626096725,-0.100556924939156,-0.038865495473146,0.050130654126406,0.182477548718452,0.015872636809945,0.035788800567389,0.052638810127974,0.024932902306318,-0.197844892740250,-0.116105087101460,-0.067363932728767) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.000070021058491,-0.104344204068184,-0.326431483030319,-0.106911025941372,0.168126150965691,-0.093486249446869,0.044692277908325,-0.004250066354871,-0.059648379683495,0.053805831819773,0.057360388338566,-0.008580451831222,-0.151757746934891,0.110915675759315,0.004622674547136,0.024314392358065) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.100275456905365,-0.086511030793190,-0.297144621610641,-0.036390945315361,0.082547403872013,0.229395180940628,0.069429419934750,-0.181796714663506,-0.067584566771984,-0.107176050543785,0.201643392443657,-0.184815987944603,-0.118465311825275,0.162438914179802,-0.015901481732726,0.071062535047531) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.218704804778099,-0.124092556536198,-0.042914751917124,-0.149877920746803,0.151734322309494,0.072922967374325,-0.224496304988861,-0.162175953388214,0.221688121557236,0.176041290163994,0.233922421932220,-0.125686258077621,-0.020232975482941,-0.091386526823044,0.052617564797401,-0.024639246985316) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.113146468997002,-0.083309233188629,0.078897543251514,-0.125750526785851,-0.004164969082922,-0.124901436269283,-0.190028369426727,-0.056249003857374,-0.213043734431267,0.119655743241310,0.131928190588951,-0.022355437278748,-0.160626500844955,0.131092607975006,0.064404495060444,-0.101041346788406) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.395450890064240,-0.035347860306501,0.126162230968475,0.002642356790602,-0.072429679334164,0.176993146538734,0.207551658153534,-0.013794708065689,0.019898578524590,-0.001215058146045,-0.380232900381088,-0.042108021676540,-0.058294251561165,-0.187414377927780,-0.044268459081650,-0.015381087549031) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.105959266424179,-0.015846451744437,0.134053215384483,-0.025791812688112,0.004008920397609,-0.023663029074669,-0.066922090947628,0.003393162973225,0.034206468611956,-0.119105309247971,-0.071980111300945,-0.107240423560143,0.010441647842526,-0.096765086054802,-0.047678839415312,-0.085729621350765) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.119242779910564,0.055576108396053,-0.059351250529289,0.039183102548122,0.263041943311691,-0.061636477708817,-0.148197934031487,0.035806275904179,-0.092360392212868,0.007503181695938,-0.107439696788788,-0.030947223305702,-0.209193587303162,-0.014194219373167,-0.093841180205345,0.022472150623798) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.010839812457561,-0.099413849413395,0.020227557048202,-0.001424519228749,0.020238839089870,0.279605746269226,0.347837477922440,0.036898482590914,-0.074949972331524,0.193813845515251,0.268479019403458,-0.197574272751808,-0.110460430383682,0.036541171371937,-0.113069787621498,0.084659941494465) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.254808574914932,0.050704035907984,0.299933493137360,0.093304462730885,-0.081404305994511,-0.047672353684902,-0.104048319160938,0.038238417357206,0.102115452289581,-0.071015015244484,-0.107720941305161,-0.093499489128590,0.033768501132727,0.087187111377716,-0.178384795784950,-0.059982188045979) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.006447623483837,0.009367483668029,0.076775036752224,0.080159835517406,0.052362322807312,-0.047232188284397,0.088237911462784,-0.113846443593502,0.118893153965473,-0.031043022871017,-0.031467217952013,0.126011669635773,-0.094044297933578,-0.112905003130436,-0.101827852427959,-0.004196513909847) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.132518395781517,0.089498735964298,0.180429384112358,0.043277282267809,-0.054399780929089,0.000554417551029,0.061683610081673,-0.084837190806866,0.008361426182091,-0.090220019221306,0.180675119161606,0.320333182811737,-0.130507156252861,0.094882667064667,0.303371310234070,-0.007705219089985) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.112907707691193,0.030004534870386,0.142255872488022,0.373414814472198,0.118143759667873,0.142716601490974,-0.057788785547018,-0.011791178025305,-0.121061585843563,-0.010847367346287,-0.049262512475252,0.278896123170853,0.069578900933266,0.000251793127973,0.179770573973656,-0.058729074895382) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.061822447925806,-0.139165997505188,0.157935410737991,0.252233892679214,0.032605707645416,-0.087234511971474,0.036832816898823,-0.001504068146460,-0.093981675803661,-0.295901775360107,0.212353467941284,-0.039903346449137,-0.139720931649208,0.165267288684845,0.129004776477814,-0.014333991333842) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.111669555306435,-0.075446240603924,-0.105566143989563,0.168084293603897,-0.014150702394545,-0.106245830655098,-0.030166804790497,-0.195284888148308,-0.002384361345321,0.099929809570313,0.086750030517578,-0.073051236569881,0.189007714390755,0.316219121217728,0.289531111717224,-0.574994742870331) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.114852845668793,-0.028598809614778,-0.056910801678896,-0.009274110198021,0.160961344838142,-0.151653513312340,0.022677360102534,0.065462358295918,0.044151242822409,-0.039277695119381,0.003914196509868,-0.042578596621752,0.174267724156380,-0.040509656071663,-0.028617607429624,0.010945399291813) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.164389029145241,-0.111162275075912,0.163924202322960,0.056689284741879,-0.118229843676090,-0.103098295629025,-0.062110744416714,-0.089936226606369,0.157743081450462,-0.079307474195957,-0.016327742487192,0.629554629325867,0.167516008019447,-0.391677200794220,0.078904181718826,0.026990093290806) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.070523701608181,0.050837613642216,0.074371136724949,0.144871920347214,-0.162232026457787,0.105333901941776,-0.090293072164059,-0.228841409087181,0.151244223117828,0.056137003004551,0.042037628591061,0.084909342229366,0.128187716007233,-0.218138664960861,0.266281247138977,-0.045089665800333) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.060501620173454,-0.028152199462056,0.028228733688593,0.130243882536888,0.059277415275574,-0.079560764133930,-0.037132441997528,-0.042803280055523,0.118509545922279,-0.122579284012318,-0.106093637645245,-0.028719356283545,0.220338255167007,-0.291369169950485,-0.026325458660722,-0.014316671527922) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.039343968033791,0.119795113801956,0.015641311183572,-0.022796479985118,0.011557957157493,0.136956468224525,0.093731828033924,0.022567646577954,0.092774122953415,0.330848306417465,-0.052034880965948,0.191672384738922,0.001601550146006,-0.013550396077335,0.105445250868797,0.032017890363932) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.000502602488268,0.132256001234055,-0.007708931341767,-0.030941983684897,0.074463076889515,0.262684494256973,-0.102462522685528,-0.207065701484680,-0.011233966797590,0.100952439010143,0.000530687859282,-0.019857835024595,-0.030319320037961,0.223903208971024,0.080219238996506,0.217932343482971) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.109495788812637,-0.054634574800730,-0.018384302034974,-0.153713822364807,0.094591096043587,0.004258019383997,-0.052711099386215,-0.001642738468945,-0.227676108479500,-0.144623905420303,0.012853824533522,0.006207112688571,0.044308152049780,-0.137801215052605,0.001485849614255,0.044877238571644) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.128656223416328,-0.068469174206257,-0.010673765093088,0.000662576290779,-0.082110755145550,-0.067950271070004,0.079415932297707,-0.087470546364784,-0.132011100649834,0.170766100287437,0.093565829098225,0.036675095558167,-0.207640573382378,-0.103936813771725,-0.191172525286674,0.104522317647934) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.047983758151531,-0.238003656268120,-0.213188961148262,-0.207310944795609,0.137290373444557,-0.043333299458027,-0.217468619346619,-0.009532607160509,-0.104875013232231,-0.079806685447693,-0.479093343019485,0.095571778714657,-0.139623314142227,-0.122125715017319,-0.107639566063881,0.139584109187126) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.208425432443619,-0.101698517799377,0.067218340933323,0.116832539439201,-0.049955435097218,-0.066269800066948,0.115833468735218,0.085172586143017,0.104636654257774,0.163333892822266,0.241582378745079,-0.008315026760101,-0.031669475138187,-0.161439478397369,0.004117063712329,0.157737046480179) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.028141390532255,0.096500501036644,0.120756782591343,0.108295075595379,-0.006025464273989,0.197865128517151,-0.040602691471577,-0.026587419211864,-0.257062911987305,0.258519828319550,-0.069475851953030,0.053831622004509,-0.133801087737083,0.116879627108574,-0.053127869963646,0.014388128183782) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.140555039048195,-0.030598713085055,-0.015744149684906,-0.113232694566250,0.071792185306549,0.164010807871819,-0.045505922287703,-0.064640887081623,-0.003816921496764,0.102164171636105,-0.041307035833597,-0.387912511825562,0.075552649796009,0.198051825165749,0.106143087148666,-0.218536987900734) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.060734912753105,0.000112532245112,0.004473547916859,0.044019870460033,-0.021211279556155,0.093471214175224,0.124523788690567,-0.082027301192284,0.035161700099707,0.128239467740059,0.062185753136873,-0.150770485401154,0.113823875784874,-0.071118921041489,-0.097486220300198,-0.111659981310368) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.036007761955261,-0.084481097757816,-0.001234859810211,0.061008676886559,0.207756862044334,0.049676440656185,-0.005094796884805,0.089717626571655,0.168683573603630,-0.173824667930603,0.070439629256725,0.191497728228569,-0.103984229266644,-0.284405708312988,0.044900901615620,-0.135398119688034) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.061271380633116,0.063595756888390,-0.053616311401129,0.158705011010170,-0.044733610004187,-0.238809227943420,-0.125154599547386,0.042890068143606,-0.186500802636147,-0.097995512187481,0.113768614828587,0.103909768164158,-0.340569198131561,0.041983343660831,0.122563019394875,0.011551382020116) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.167747452855110,-0.096022382378578,-0.111063577234745,0.167216047644615,-0.118647836148739,-0.157425507903099,0.082155920565128,0.005505991633981,-0.072424076497555,-0.098069123923779,0.177155733108521,0.280923932790756,0.188248246908188,0.108559630811214,0.090262629091740,0.271222025156021) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.289726793766022,0.179781019687653,-0.117732934653759,0.038855504244566) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_3x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(0.021958809345961,0.105475261807442,0.019688891246915,0.213982164859772);
res += mat4(-0.006929568946362,-0.170498386025429,0.382407665252686,0.049159802496433,-0.051047015935183,0.034465719014406,0.035973027348518,-0.003583851037547,-0.038969237357378,-0.056407596915960,-0.231931269168854,0.051113240420818,-0.136220589280128,-0.163789302110672,0.002311509335414,0.077149130403996) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.035652078688145,-0.064223311841488,0.259943008422852,-0.028149858117104,0.028814606368542,-0.036350451409817,0.211035877466202,0.075398251414299,-0.006887050345540,-0.040644701570272,-0.129736378788948,0.045493241399527,-0.169953808188438,-0.121900610625744,0.142921924591064,0.004237146116793) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.000919425627217,0.030006861314178,0.291863769292831,0.194468080997467,0.016118098050356,-0.287446469068527,-0.166525632143021,0.024571454152465,0.010312240570784,-0.059019505977631,0.005405516363680,0.077650532126427,0.059067744761705,-0.004913845099509,-0.032638616859913,-0.106806889176369) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.031048821285367,-0.258645564317703,0.153570458292961,-0.117032378911972,0.024404842406511,0.041972260922194,0.037806585431099,0.005792487878352,-0.115735359489918,0.005482275038958,-0.147202312946320,-0.017744952812791,0.076257735490799,0.160055384039879,-0.298581540584564,-0.118914939463139) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.140399545431137,-0.166490152478218,0.206516534090042,-0.160947024822235,-0.024168619886041,-0.122886307537556,0.002304216613993,-0.081223562359810,-0.062729522585869,-0.026574341580272,0.134609341621399,0.035915959626436,-0.155239522457123,-0.101845800876617,0.314035177230835,-0.293701529502869) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.058898124843836,0.048223916441202,0.305615216493607,-0.165004655718803,0.180973649024963,-0.243626534938812,-0.044607356190681,0.002706562401727,-0.156219512224197,-0.184031769633293,-0.108109548687935,0.149144366383553,0.149405539035797,-0.069828696548939,0.164449095726013,-0.018785918131471) * MODEL1_texOff(vec2(0,1));
res += mat4(0.111672498285770,-0.326287537813187,0.226482599973679,-0.179159417748451,0.013455810025334,-0.004109505098313,-0.002434166381136,0.001475675613619,-0.126458302140236,0.136060580611229,-0.144867569208145,0.022585494443774,-0.090269811451435,0.010626633651555,-0.037074130028486,-0.005698926746845) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.013512181118131,-0.223160639405251,0.124559879302979,-0.096337556838989,-0.019715797156096,0.010967198759317,0.072298094630241,0.033001270145178,-0.055629778653383,0.230697721242905,-0.154146894812584,0.245551869273186,0.084159098565578,0.221024021506310,0.033259749412537,0.166404023766518) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.069756984710693,0.002613714663312,0.160906895995140,0.078598231077194,-0.015787605196238,0.004840962588787,-0.040511757135391,0.064084731042385,0.052221294492483,-0.041881728917360,0.016805680468678,-0.031604003161192,0.011719150468707,-0.203264072537422,0.269620984792709,0.043354451656342) * MODEL1_texOff(vec2(1,1));
res += mat4(0.117187038064003,0.284445226192474,-0.120248369872570,0.230711027979851,0.095115356147289,0.065080791711807,0.111280143260956,-0.018214523792267,0.069608487188816,-0.096744008362293,0.033591844141483,-0.106238633394241,-0.067818805575371,0.028592403978109,-0.075313024222851,-0.059001401066780) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.206135302782059,0.181401446461678,-0.180216118693352,0.044247630983591,0.281380027532578,0.117460526525974,-0.053457293659449,-0.250385761260986,0.028582654893398,0.140662774443626,-0.093811236321926,-0.147325754165649,-0.074057869613171,0.319495916366577,-0.183804452419281,0.011797442100942) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.020634179934859,0.129260137677193,-0.072284676134586,0.252278447151184,-0.011993868276477,-0.055021904408932,0.011544168926775,0.176862210035324,-0.046714123338461,-0.017501413822174,-0.248768329620361,0.069128870964050,0.060438673943281,-0.133327499032021,-0.124509982764721,-0.158076301217079) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.070412851870060,0.093693085014820,-0.051117580384016,0.209953501820564,-0.003088612807915,0.169495627284050,0.169673904776573,0.104542233049870,-0.048062711954117,-0.087536908686161,0.065918818116188,-0.098323591053486,0.112109959125519,0.041073694825172,0.048272460699081,-0.159685313701630) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.136086031794548,-0.005410927347839,0.003616100409999,-0.138123556971550,0.034572239965200,0.024586716666818,-0.118121258914471,0.037114456295967,-0.230138689279556,0.115031115710735,0.147620633244514,0.151514217257500,-0.083162203431129,-0.041855324059725,0.091457150876522,-0.538856804370880) * MODEL2_texOff(vec2(0,0));
res += mat4(0.010507785715163,0.140133723616600,-0.011603178456426,0.241493523120880,-0.302174240350723,0.004470963031054,-0.092783108353615,0.010847361758351,-0.337295085191727,0.251754671335220,-0.475360393524170,0.047136466950178,-0.503405034542084,0.033816318958998,-0.389703810214996,-0.226799324154854) * MODEL2_texOff(vec2(0,1));
res += mat4(0.026709556579590,0.049752995371819,-0.052076149731874,0.018317298963666,0.092807769775391,-0.039456777274609,0.063048690557480,-0.041718639433384,0.042136196047068,0.037242930382490,0.118098549544811,-0.109000273048878,-0.070109456777573,-0.075019471347332,0.098738834261894,-0.145194873213768) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.005859797820449,0.111489117145538,-0.148228570818901,0.079341627657413,-0.027785260230303,-0.062586590647697,-0.132263138890266,-0.044528391212225,0.093441978096962,-0.143922612071037,0.163579419255257,-0.010194806382060,0.075660467147827,-0.079760096967220,0.166439041495323,-0.252658188343048) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.089746735990047,0.050601530820131,-0.058426190167665,0.239787787199020,0.004636727739125,0.020161619409919,0.021984647959471,0.146188408136368,-0.042290732264519,-0.021618874743581,0.009082577191293,0.187838569283485,-0.052975546568632,0.045243851840496,0.101588830351830,-0.214791998267174) * MODEL2_texOff(vec2(1,1));
res += mat4(0.009467254392803,-0.206629499793053,-0.061995562165976,-0.313609510660172,0.044679529964924,-0.011369612999260,0.229623943567276,-0.007999654859304,0.144714981317520,0.195137828588486,0.043703310191631,0.069695733487606,-0.093574911355972,-0.214995115995407,-0.171493455767632,-0.172922104597092) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.043269433081150,-0.121195964515209,-0.079981811344624,-0.736089229583740,0.104225054383278,-0.108568139374256,0.261099636554718,0.232259646058083,-0.023688828572631,-0.086082786321640,0.058108702301979,0.227859735488892,-0.106399036943913,0.253727227449417,0.171387448906898,-0.121437683701515) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.014041720889509,-0.088342308998108,-0.004872818477452,-0.437753528356552,0.098707258701324,-0.099589616060257,0.153751775622368,0.292203336954117,-0.110321648418903,0.155212596058846,0.084110602736473,-0.087627634406090,-0.037939582020044,0.013862758874893,0.057427369058132,0.278472602367401) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.039118491113186,-0.113604210317135,0.025567658245564,-0.342491865158081,0.000671016343404,-0.117280013859272,0.158632203936577,-0.111715808510780,-0.086753576993942,0.087112441658974,-0.050023265182972,-0.061885029077530,-0.015268724411726,0.167018413543701,-0.279649823904037,-0.083457857370377) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.091380752623081,-0.120767265558243,-0.118176676332951,-1.067553281784058,0.067615211009979,0.096845708787441,0.279278188943863,0.124940045177937,-0.091016255319118,0.133746445178986,-0.050749368965626,0.360960006713867,-0.185151815414429,0.020508974790573,0.057042591273785,-0.000686769024469) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.101926431059837,-0.099443912506104,0.007010504603386,-0.657099902629852,0.018886387348175,-0.000771057792008,-0.004770711064339,-0.020889192819595,0.141200140118599,0.000924483465496,0.089434728026390,-0.088539548218250,-0.160307586193085,-0.113864324986935,0.217471763491631,0.145164370536804) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.004371101036668,-0.043026935309172,-0.018679838627577,-0.037801288068295,0.093950256705284,0.018282143399119,0.083602599799633,0.072455823421478,0.170197308063507,-0.189455196261406,0.075638264417648,-0.086930111050606,-0.078624486923218,0.022497102618217,0.050641413778067,-0.053841754794121) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.028459670022130,-0.167592391371727,0.007351573556662,-0.527321100234985,0.175413817167282,0.065268881618977,0.160834133625031,-0.013586412183940,-0.138724431395531,-0.063613682985306,-0.022516574710608,0.016434974968433,-0.020100753754377,-0.140216410160065,0.199131146073341,0.076686143875122) * MODEL3_texOff(vec2(1,0));
res += mat4(0.002020678948611,-0.046160776168108,0.008496186695993,-0.241271778941154,0.207572638988495,0.078296989202499,0.036332435905933,0.175097897648811,-0.054002176970243,-0.092178143560886,0.098591871559620,-0.074839837849140,-0.129875063896179,0.122728720307350,0.206662923097610,0.058781087398529) * MODEL3_texOff(vec2(1,1));
res += mat4(0.077401660382748,-0.344028532505035,-0.180039912462234,0.067328348755836,-0.103546567261219,0.242963582277298,0.012649378739297,0.038285378366709,0.011715418659151,0.094817370176315,0.210878536105156,0.088822565972805,-0.007755984552205,0.075059771537781,-0.034917809069157,0.084034278988838) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.064277268946171,-0.416558176279068,0.026664000004530,0.066477090120316,-0.185436367988586,-0.316559493541718,0.027911055833101,-0.095642454922199,-0.057973574846983,-0.188914507627487,-0.196290016174316,0.040624924004078,-0.076181180775166,-0.363715231418610,0.202186018228531,0.022118566557765) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.001803184044547,0.367224872112274,-0.008159157820046,0.017570445314050,0.336044877767563,-0.152708113193512,0.047638423740864,0.266365677118301,-0.169133424758911,-0.117396377027035,-0.056332342326641,0.156326860189438,-0.126939758658409,-0.053446304053068,-0.048267722129822,0.112577706575394) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.046167150139809,0.405119419097900,-0.031630907207727,-0.028257766738534,-0.020406579598784,0.111494258046150,0.015781825408340,-0.119132883846760,0.048374608159065,0.194374755024910,0.008860791102052,0.120195567607880,0.033551264554262,0.010637637227774,0.026319285854697,0.034950241446495) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.055455602705479,-0.428463220596313,0.057971760630608,-0.141199558973312,-0.039629496634007,0.037119548767805,-0.035218968987465,-0.047767706215382,-0.123285591602325,-0.029648849740624,-0.035553231835365,-0.208709940314293,0.127112790942192,-0.128636434674263,-0.090206839144230,-0.199648067355156) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.229681625962257,-0.158321544528008,0.316461592912674,-0.060105767101049,0.145118504762650,-0.004566092509776,0.259918957948685,-0.149548321962357,-0.157234936952591,0.033921830356121,0.126351356506348,-0.138884842395782,-0.623136520385742,-0.056619610637426,-0.315853714942932,-0.427185922861099) * MODEL4_texOff(vec2(0,1));
res += mat4(0.050187684595585,0.363766074180603,-0.020921798422933,-0.031447615474463,-0.041085924953222,-0.007544061634690,0.027566516771913,-0.148249074816704,-0.118799179792404,0.181470409035683,0.016517750918865,0.018491402268410,-0.012604217045009,0.113961167633533,-0.006148296874017,0.118031509220600) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.000402258738177,0.070048011839390,-0.186886608600616,0.150136753916740,0.105509921908379,-0.002127789426595,-0.006069968920201,-0.151458427309990,0.016131674870849,-0.008504598401487,-0.112242020666599,-0.091746553778648,-0.110196784138680,0.180075526237488,0.127895861864090,0.091187082231045) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.041825842112303,-0.223978117108345,0.130884647369385,-0.172991201281548,0.109348766505718,0.130722165107727,-0.173315614461899,0.184941664338112,0.137207671999931,-0.000288503768388,0.050791617482901,-0.070466950535774,-0.322878837585449,-0.119264781475067,-0.172020062804222,0.098385915160179) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.032409034669399,0.198844075202942,-0.115507960319519,0.045632336288691,-0.052455600351095,0.120804831385612,-0.020740875974298,0.038259256631136,0.053901802748442,-0.119539126753807,0.025041271001101,0.158171743154526,-0.028752703219652,-0.153270989656448,-0.013273615390062,0.027738107368350) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.114909149706364,0.066151976585388,0.002590316347778,-0.023405192419887,0.112963713705540,-0.216029837727547,-0.195453137159348,0.236140400171280,-0.040113624185324,-0.028859013691545,-0.016468450427055,-0.020617544651031,-0.170243635773659,0.047861255705357,-0.027417147532105,0.155732899904251) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.157272771000862,0.080146238207817,0.059417035430670,0.009626843966544,0.028785057365894,-0.259750097990036,0.138349860906601,-0.121048174798489,-0.020501170307398,0.097732037305832,0.079192027449608,-0.102212250232697,0.083484359085560,0.079856894910336,0.029849547892809,0.046268519014120) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.151765152812004,0.133023798465729,-0.057461589574814,0.164900809526443,-0.257217258214951,0.003108073957264,0.097461372613907,-0.183166846632957,-0.129808530211449,0.076024584472179,-0.056780721992254,-0.097324453294277,-0.028265131637454,-0.001786216045730,-0.028910202905536,0.039729300886393) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.202200949192047,0.007362903561443,0.124596901237965,0.061317231506109,-0.081588320434093,0.254584580659866,-0.121742181479931,0.158421561121941,-0.132261499762535,-0.269751667976379,0.387966871261597,-0.086220368742943,-0.565400123596191,-0.128050506114960,0.043235450983047,-0.086670756340027) * MODEL5_texOff(vec2(0,0));
res += mat4(0.178235501050949,0.191729560494423,-0.188435584306717,0.128654673695564,0.242758139967918,0.083511941134930,-0.167070716619492,-0.083330005407333,0.283672034740448,0.069170825183392,0.198968067765236,-0.059208076447248,0.455837786197662,-0.016512442380190,-0.158042088150978,0.027957523241639) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.000708187406417,0.184853374958038,-0.255059808492661,0.033513963222504,0.136405944824219,-0.120614655315876,0.188359856605530,-0.025155063718557,0.134334579110146,0.056255433708429,-0.015655776485801,0.102230764925480,-0.111300721764565,-0.083833180367947,0.068595640361309,-0.116532132029533) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.012420567683876,0.183120056986809,-0.305885463953018,0.356242507696152,-0.182936996221542,0.083405084908009,0.016101064160466,0.108155339956284,-0.224198594689369,-0.096660822629929,-0.099575854837894,-0.193292230367661,0.055093273520470,-0.127178892493248,0.067264325916767,-0.256037086248398) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.016464300453663,0.013450555503368,-0.516993820667267,0.204642906785011,0.018428498879075,0.038330279290676,-0.111481428146362,-0.049803674221039,0.132823914289474,0.029683178290725,0.116095915436745,0.010554355569184,0.075827203691006,-0.034927528351545,0.012135040946305,0.137294635176659) * MODEL5_texOff(vec2(1,1));
res += mat4(0.038393046706915,0.128655463457108,-0.023752521723509,0.147833928465843,0.029590424150229,-0.153915300965309,0.022837877273560,0.192720845341682,-0.030075713992119,0.225944563746452,-0.392097264528275,-0.071755848824978,0.111717194318771,-0.016983537003398,0.106185056269169,0.157379671931267) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.136216863989830,-0.083456240594387,0.378304481506348,0.172250345349312,0.066632486879826,-0.025116547942162,-0.011210400611162,-0.117251008749008,-0.151703834533691,-0.115196682512760,-0.336016774177551,0.013132467865944,-0.118188485503197,0.084087789058685,0.062814690172672,-0.062141180038452) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.043673679232597,0.161839544773102,0.320624560117722,-0.075744159519672,-0.205808103084564,0.154928132891655,0.178232252597809,0.121648915112019,-0.191876143217087,0.018112909048796,-0.004868755117059,-0.014197142794728,0.185115113854408,0.074101559817791,0.098269425332546,-0.145942077040672) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.146923288702965,-0.033470921218395,-0.361328214406967,0.013318182900548,0.034453518688679,-0.082244992256165,0.039124302566051,-0.142627522349358,0.101087577641010,0.057712603360415,-0.145574644207954,0.062498036772013,-0.210919797420502,0.272453963756561,0.109397493302822,0.029668699949980) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.123128421604633,0.095791459083557,0.198672294616699,0.164698630571365,0.148197621107101,-0.048758763819933,0.086939394474030,0.072454601526260,-0.200654208660126,0.084610179066658,-0.174630880355835,0.007473998703063,-0.293931007385254,-0.132964730262756,0.092832401394844,0.044551130384207) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.018467111513019,-0.290650457143784,0.125330954790115,-0.250026851892471,-0.182983502745628,0.096334762871265,-0.167124986648560,0.156397387385368,0.020712498575449,0.011679055169225,0.063323535025120,-0.102623194456100,0.514636635780334,0.067874498665333,-0.205899387598038,0.142962977290154) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.011856436729431,-0.089603781700134,-0.402674317359924,0.165617510676384,-0.023226287215948,-0.080378443002701,0.115536868572235,-0.085369035601616,-0.056865248829126,0.039018057286739,-0.005034289788455,0.094705134630203,-0.030586503446102,0.000352999311872,0.208644285798073,-0.132802933454514) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.065609313547611,0.044668693095446,0.060635738074780,0.065594047307968,-0.134708046913147,-0.096052646636963,0.241400480270386,0.006593585480005,-0.221341714262962,0.105873852968216,0.108807727694511,0.056357786059380,0.048801600933075,-0.026463598012924,-0.020945906639099,-0.038640331476927) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.127933427691460,0.137819960713387,0.182901278138161,-0.205111667513847,-0.076709225773811,0.105843476951122,0.205568939447403,0.350473642349243,-0.049101285636425,-0.071651779115200,-0.088630668818951,-0.125010609626770,0.180561661720276,-0.085953004658222,0.084481626749039,0.001338418689556) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.093271605670452,-0.591805338859558,-0.193662911653519,0.095379710197449) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_3x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(-0.265211969614029,0.029034823179245,0.144869297742844,0.066698968410492);
res += mat4(0.003931487444788,0.047188930213451,-0.155058458447456,-0.129205405712128,0.015028091147542,-0.055116288363934,-0.143708899617195,-0.058844860643148,0.179523900151253,-0.010034996084869,0.005318801384419,0.093620076775551,0.247917488217354,0.103555753827095,-0.007343760225922,0.058262974023819) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.020366471260786,-0.106930106878281,0.085970565676689,-0.016168188303709,-0.082705199718475,-0.070123739540577,-0.457588970661163,0.060352470725775,0.269585490226746,-0.084834426641464,-0.160913929343224,0.017819788306952,0.215536743402481,-0.087882623076439,0.115005299448967,-0.014556878246367) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.161664336919785,-0.049405202269554,-0.099081799387932,-0.071332588791847,0.090839080512524,-0.236977860331535,-1.008570194244385,0.055740922689438,0.045684512704611,-0.140423387289047,0.139384761452675,0.088951878249645,-0.038496103137732,0.024607017636299,-0.005138267762959,0.001882094889879) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.014441239647567,0.073000900447369,-0.053383246064186,-0.104292012751102,-0.009477412328124,0.036405969411135,-0.029971789568663,-0.080829955637455,0.306847393512726,0.008565112948418,0.265072017908096,0.169797986745834,0.089785546064377,-0.063386574387550,-0.118036337196827,0.082540310919285) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.253338098526001,0.017966696992517,0.104582294821739,0.173049673438072,0.041287656873465,-0.041550621390343,-0.114745840430260,-0.030222166329622,0.235807299613953,0.201332747936249,-0.558627963066101,-0.337183654308319,-0.053229395300150,-0.148832097649574,-0.025207472965121,0.206305384635925) * MODEL1_texOff(vec2(0,0));
res += mat4(0.091544531285763,-0.002243154682219,0.024030396714807,-0.024563247337937,-0.090618096292019,-0.248970031738281,-0.161231637001038,0.127138957381248,0.267854750156403,-0.133919164538383,0.064166963100433,0.186158671975136,-0.185764268040657,-0.020425138995051,0.048976797610521,-0.235416084527969) * MODEL1_texOff(vec2(0,1));
res += mat4(0.105006285011768,0.044725358486176,-0.095357857644558,-0.067906394600868,0.049967337399721,-0.018847309052944,-0.015116551890969,-0.070782773196697,0.046570930629969,-0.211385145783424,0.220469683408737,0.055611439049244,-0.483894616365433,0.002637378871441,-0.135144695639610,0.093337789177895) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.168961822986603,-0.611162483692169,-0.139113023877144,0.103173114359379,0.076445870101452,-0.023022474721074,-0.039975583553314,-0.004676843527704,0.099800400435925,0.206041097640991,0.186413094401360,0.013287316076458,0.242652848362923,0.147251874208450,-0.015870617702603,-0.091122344136238) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.053262777626514,0.035656064748764,-0.143820226192474,0.092737816274166,0.029686801135540,-0.016154132783413,-0.063023418188095,0.074190430343151,0.040082972496748,-0.182791963219643,0.271856635808945,0.021987998858094,-0.100053817033768,-0.140346035361290,0.039682962000370,-0.184781298041344) * MODEL1_texOff(vec2(1,1));
res += mat4(0.013792497105896,-0.011037830263376,0.117066703736782,-0.049334932118654,0.163666918873787,0.051839455962181,-0.240493282675743,0.046332940459251,0.019949233159423,0.002242078538984,-0.020257376134396,-0.015210941433907,0.143579617142677,0.030144704505801,-0.068557888269424,-0.097846873104572) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.029032597318292,0.072328247129917,-0.226432338356972,0.094002306461334,0.188829272985458,0.176725357770920,-0.724302768707275,0.138282492756844,0.010963306762278,-0.169241920113564,-0.013623320497572,0.059222944080830,-0.004221403505653,0.048138517886400,-0.134197726845741,-0.243990972638130) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.065294392406940,0.184808403253555,0.035303205251694,0.242631122469902,0.040431510657072,-0.182111650705338,-0.150533571839333,0.257734566926956,0.045516274869442,-0.128751710057259,-0.058438111096621,-0.210553959012032,0.032080926001072,-0.072158701717854,-0.091645233333111,0.119504675269127) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.020239541307092,0.016971148550510,-0.031879417598248,-0.125243619084358,0.290258467197418,-0.033385049551725,0.081393808126450,0.053562227636576,0.028940925374627,-0.047426205128431,0.015239080414176,0.069647274911404,0.157441869378090,-0.019569659605622,0.018397020176053,0.095910243690014) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.069308780133724,0.201329320669174,0.227572098374367,0.123932175338268,-0.204143896698952,0.175995454192162,0.416533917188644,0.036968402564526,0.257354289293289,-0.056830160319805,-0.103051148355007,0.156217843294144,0.106443785130978,0.275907307863235,0.126199379563332,-0.393808662891388) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.120999440550804,0.183858230710030,0.161807432770729,0.071293987333775,0.042429536581039,0.002262209309265,0.062079958617687,-0.292177587747574,-0.062023121863604,0.292203783988953,0.340175449848175,-0.074749454855919,-0.060249011963606,-0.200674638152122,-0.323036879301071,0.090625725686550) * MODEL2_texOff(vec2(0,1));
res += mat4(0.024931503459811,0.078831069171429,0.018075510859489,-0.182835027575493,0.051926162093878,0.124474391341209,-0.060854949057102,0.089311271905899,-0.208846017718315,-0.052140954881907,-0.057333983480930,0.027463575825095,-0.094483606517315,-0.153103113174438,-0.056722290813923,0.034060757607222) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.161417067050934,0.128768965601921,-0.002331396099180,-0.159653395414352,-0.069154039025307,-0.233145162463188,0.070326976478100,-0.120125882327557,0.071809276938438,0.138185441493988,0.031310684978962,-0.018411507830024,-0.079747729003429,-0.196605354547501,-0.183305874466896,-0.522589802742004) * MODEL2_texOff(vec2(1,0));
res += mat4(0.072668984532356,-0.059408530592918,0.059238653630018,-0.037572979927063,0.086442418396473,0.025866027921438,-0.028437811881304,0.071183457970619,-0.058915346860886,-0.108808666467667,-0.121676154434681,0.008513148874044,-0.023911345750093,-0.086652055382729,-0.007371783256531,-0.052061043679714) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.092467114329338,-0.075110293924809,0.032030384987593,-0.008800375275314,0.096201397478580,-0.043272312730551,0.019055211916566,-0.098603680729866,0.201524451375008,0.092742815613747,-0.030325444415212,0.106157518923283,-0.005977938417345,-0.024340502917767,-0.092443317174911,0.149750262498856) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.006968322675675,-0.142532765865326,0.142393603920937,-0.100149668753147,0.269073277711868,-0.078306093811989,-0.066443659365177,-0.041267506778240,0.085714094340801,-0.049297906458378,-0.065639153122902,-0.041693124920130,-0.138569399714470,0.130030229687691,0.089540116488934,0.033688087016344) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.193798750638962,-0.073884487152100,-0.128603532910347,-0.044915854930878,0.153854802250862,-0.210260376334190,-0.008582327514887,0.103182725608349,0.092463105916977,0.035069327801466,0.063503324985504,-0.113121889531612,0.020070234313607,-0.104508809745312,0.103483118116856,-0.023167423903942) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.144556537270546,-0.078917317092419,-0.003756224410608,-0.064204946160316,-0.288183599710464,-0.101358376443386,0.129257753491402,-0.057973906397820,-0.084261290729046,0.044038522988558,0.020527737215161,0.195141881704330,0.128740698099136,0.136358052492142,-0.030145063996315,0.211854323744774) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.292880952358246,0.050481505692005,0.104506202042103,-0.049980368465185,0.066441632807255,-0.016961101442575,0.194028198719025,-0.050158396363258,-0.135912135243416,0.279239773750305,0.244142994284630,-0.015509907156229,-0.081746108829975,0.237808734178543,0.005868264473975,0.102721139788628) * MODEL3_texOff(vec2(0,0));
res += mat4(0.064775444567204,-0.094041138887405,0.152467474341393,-0.050830636173487,0.203659728169441,-0.292532354593277,-0.099727109074593,-0.038636539131403,-0.113292619585991,0.014040704816580,0.071822069585323,-0.068036802113056,-0.007000224664807,-0.114955224096775,-0.017086224630475,0.076264537870884) * MODEL3_texOff(vec2(0,1));
res += mat4(0.050653237849474,-0.059177942574024,0.057568557560444,0.050668589770794,-0.108766518533230,0.200259521603584,-0.092612825334072,0.061782948672771,0.048002947121859,-0.156881064176559,-0.123647741973400,0.074383251368999,-0.191682934761047,0.000378166645532,0.103395752608776,0.027767769992352) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.098412238061428,-0.080232113599777,0.026221338659525,0.097267173230648,-0.167873769998550,-0.142032414674759,-0.112947858870029,0.051953040063381,-0.296862125396729,-0.301460474729538,-0.237957596778870,0.139069080352783,0.104583136737347,0.048468343913555,-0.034296840429306,0.086955152451992) * MODEL3_texOff(vec2(1,0));
res += mat4(0.073891565203667,-0.030494330450892,-0.029222443699837,-0.010677243582904,0.083266720175743,0.042376920580864,-0.049488373100758,0.202873036265373,-0.056899752467871,-0.051772985607386,-0.003093825187534,0.176127880811691,0.007646089885384,0.209205552935600,0.044119697064161,0.031720153987408) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.000731364008971,0.063386149704456,0.063578374683857,-0.047919712960720,-0.147549912333488,0.095946200191975,-0.100937888026237,0.083922468125820,0.002092824783176,-0.012471602298319,-0.058218069374561,-0.154238596558571,-0.084589824080467,-0.023164624348283,0.129000544548035,-0.021415995433927) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.179789751768112,0.091347552835941,0.054789010435343,-0.154815375804901,0.170654803514481,0.063325859606266,-0.639499604701996,0.029961165040731,0.199121162295341,-0.073764011263847,0.061287406831980,0.234555378556252,0.035857643932104,-0.005448183976114,-0.168253079056740,0.152963697910309) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.042376164346933,-0.175701200962067,0.112452335655689,-0.017220893874764,-0.120320677757263,0.216817513108253,0.063799612224102,0.115930519998074,0.070778712630272,-0.048223067075014,-0.075333252549171,-0.058317836374044,-0.130566135048866,0.122718036174774,0.055937379598618,0.002421355340630) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.144880667328835,0.042368605732918,-0.008248820900917,-0.136246129870415,-0.142823144793510,0.139758452773094,-0.099448710680008,-0.020944552496076,-0.142748937010765,0.019226325675845,0.026910109445453,-0.380151361227036,-0.002721654251218,-0.023323051631451,-0.010002559982240,-0.132262751460075) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.177742481231689,0.098930530250072,-0.218583971261978,-0.019124981015921,0.057268988341093,0.203264683485031,0.260208904743195,-0.126344144344330,0.059935823082924,-0.298001468181610,0.080285027623177,0.171385571360588,0.095062389969826,-0.016490722075105,0.172595888376236,0.217803999781609) * MODEL4_texOff(vec2(0,0));
res += mat4(0.022057777270675,-0.348661810159683,-0.204704493284225,-0.182299748063087,0.140383303165436,-0.431295514106750,0.134466692805290,-0.157681003212929,-0.065171301364899,0.320873677730560,-0.163194179534912,-0.068760760128498,-0.112072750926018,-0.061656814068556,0.207272261381149,-0.208590611815453) * MODEL4_texOff(vec2(0,1));
res += mat4(0.187046587467194,0.073574602603912,0.026868080720305,0.012422250583768,-0.063148178160191,-0.023883100599051,-0.149688541889191,-0.056600678712130,-0.150494381785393,0.167591288685799,-0.026755515486002,-0.195403873920441,0.081599488854408,0.157399356365204,0.004564977716655,-0.059985697269440) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.180935144424438,0.103670902550220,0.016175087541342,-0.031927037984133,-0.107766717672348,0.133622586727142,-0.068717330694199,-0.113996349275112,-0.285351693630219,0.051388617604971,0.147170841693878,0.233063369989395,0.159297406673431,-0.047915421426296,0.061588335782290,0.266833692789078) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.090884909033775,-0.111333124339581,0.108223445713520,0.072822026908398,-0.135830134153366,-0.081144444644451,0.068442679941654,-0.043237522244453,0.072305053472519,0.020572248846292,0.082622602581978,-0.111958406865597,-0.196312963962555,-0.084471501410007,0.038065742701292,-0.131349548697472) * MODEL4_texOff(vec2(1,1));
res += mat4(0.237484470009804,0.043380450457335,-0.010466969572008,0.029051875695586,0.099492892622948,0.025934092700481,0.042238116264343,-0.064361587166786,-0.085153616964817,0.041447065770626,0.051007796078920,-0.077960282564163,0.044622115790844,0.012274520471692,-0.112043268978596,-0.006525486242026) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.274881780147552,0.068954877555370,-0.060499042272568,0.098119623959064,0.078663334250450,0.085231877863407,0.015079817734659,0.064194768667221,0.102771349251270,-0.006849997676909,0.263025969266891,-0.097326844930649,0.246767148375511,-0.130525752902031,0.029478847980499,-0.033775769174099) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.033164370805025,0.214630410075188,-0.104319244623184,0.142251595854759,-0.054222647100687,0.011445877142251,-0.124579712748528,0.119280718266964,-0.170463278889656,0.172267258167267,-0.151290386915207,0.036439195275307,-0.019925311207771,0.002168569946662,-0.105807185173035,0.127353563904762) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.028564855456352,0.063598632812500,-0.172588363289833,-0.194404274225235,-0.177375495433807,0.076458081603050,-0.021797442808747,0.055459517985582,-0.171407416462898,-0.123819634318352,-0.038932532072067,0.202158510684967,0.191927075386047,-0.036434821784496,-0.231009036302567,-0.057814050465822) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.115891672670841,0.026061661541462,-0.298581779003143,-0.087862737476826,-0.035776942968369,-0.051094010472298,0.186661556363106,-0.398461699485779,0.066787965595722,-0.349528938531876,0.198942750692368,0.002849632175639,0.181718140840530,-0.412159353494644,-0.314309388399124,-0.043451763689518) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.138927340507507,0.189825683832169,-0.001211245660670,-0.091709494590759,-0.119604438543320,-0.074510745704174,-0.007534584030509,0.016861403360963,-0.292989611625671,0.209821105003357,0.012413189746439,-0.037509236484766,0.029907098039985,0.236591964960098,-0.242248758673668,0.193091869354248) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.223942711949348,0.272658258676529,0.008670592680573,0.020934380590916,-0.062606506049633,-0.086822658777237,-0.182082355022430,-0.180585086345673,-0.193546116352081,-0.079018063843250,0.005732381716371,0.231964781880379,-0.176871970295906,0.131507575511932,-0.202549710869789,0.073461093008518) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.084709763526917,0.435980200767517,-0.149822756648064,-0.090304464101791,0.044261295348406,-0.006398042663932,0.110443256795406,0.158750265836716,-0.093564681708813,0.050318423658609,-0.063794627785683,-0.134286239743233,0.095302172005177,0.005095692351460,-0.139048591256142,-0.215609848499298) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.155919611454010,-0.330200523138046,-0.030325626954436,0.092400215566158,-0.230942100286484,0.028605703264475,0.006500346586108,0.120562642812729,-0.272016197443008,-0.152825593948364,0.009207471273839,0.015217648819089,-0.047968842089176,-0.300788879394531,-0.184148475527763,0.070863142609596) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.147152572870255,0.028817845508456,0.137855738401413,-0.099220685660839,-0.004018342122436,-0.014544880017638,0.076319165527821,-0.094968006014824,0.099185876548290,-0.031821880489588,0.026912217959762,0.075264245271683,0.049653526395559,-0.201122909784317,-0.232556149363518,-0.052719466388226) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.154218435287476,-0.097167298197746,-0.037099413573742,-0.183972671627998,-0.178926646709442,0.022072961553931,0.151170372962952,-0.166377067565918,0.134147837758064,0.296253532171249,-0.031325280666351,0.034762322902679,-0.332880049943924,-0.110496141016483,0.271576762199402,-0.061954114586115) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.081396259367466,-0.148285046219826,0.169783845543861,-0.125278368592262,-0.149388343095779,0.024769010022283,0.191252127289772,-0.221322894096375,0.073781222105026,0.299148589372635,0.051554266363382,0.120148271322250,0.070218496024609,0.103917218744755,0.051826555281878,-0.073313988745213) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.204992651939392,0.009253929369152,-0.019171796739101,-0.061336115002632,0.003381016664207,0.065201424062252,0.117905236780643,0.032201733440161,-0.032538000494242,0.054035823792219,0.009262931533158,0.105323024094105,0.155375257134438,0.089296452701092,0.295741915702820,-0.036171726882458) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.049413122236729,-0.019727582111955,-0.192186027765274,-0.006583099719137,-0.092256143689156,0.179071426391602,0.001091071753763,0.273638904094696,-0.135780572891235,-0.144188821315765,0.090958312153816,-0.045192249119282,0.056895736604929,-0.145144164562225,-0.186725795269012,0.111488334834576) * MODEL6_texOff(vec2(0,0));
res += mat4(0.005092623643577,-0.115245930850506,-0.150644347071648,0.183011800050735,-0.011599837802351,-0.071890361607075,0.023425368592143,0.059931624680758,-0.038567397743464,-0.069664739072323,0.086742974817753,0.066115878522396,0.162854969501495,0.295186042785645,0.072769694030285,-0.006984660401940) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.122468240559101,0.061172213405371,0.199728518724442,-0.014761258848011,-0.102997958660126,-0.258130073547363,0.058955769985914,-0.031547281891108,-0.255086779594421,0.094797998666763,0.029542934149504,0.006218715105206,-0.130356729030609,0.008556419052184,-0.076460421085358,-0.132014051079750) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.150971874594688,0.040652267634869,0.040759250521660,-0.109254471957684,0.005969130434096,-0.372509628534317,0.007729419041425,-0.359724551439285,0.107474111020565,0.002403408754617,0.003282258287072,0.119176253676414,0.134862750768661,0.284554213285446,0.096116401255131,0.022739248350263) * MODEL6_texOff(vec2(1,0));
res += mat4(0.039700593799353,-0.058727551251650,-0.164012208580971,0.096844740211964,-0.049360651522875,-0.073741875588894,-0.097876891493797,0.290140658617020,-0.032158575952053,-0.216384097933769,-0.065287351608276,0.047567777335644,0.066519245505333,-0.223178118467331,0.014358779415488,-0.046191357076168) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.262395948171616,-0.149308353662491,-0.071006782352924,0.784230172634125) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_3x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(0.018922101706266,0.190982177853584,0.147102937102318,0.052389554679394);
res += mat4(-0.024020172655582,0.035661116242409,0.125156536698341,-0.042286552488804,-0.071425497531891,0.120175451040268,-0.249238342046738,-0.023399231955409,-0.190371155738831,0.090439766645432,-0.125982120633125,0.018913807347417,0.003133895108476,-0.173234581947327,-0.033826738595963,0.062438938766718) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.062925279140472,-0.184626549482346,-0.012634701095521,0.016323834657669,-0.114174023270607,0.069065019488335,-0.521329939365387,-0.044280070811510,-0.086430557072163,0.054489258676767,0.056033417582512,-0.148513630032539,0.013469684869051,0.196285605430603,-0.001732439850457,-0.037932813167572) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.117605239152908,-0.222149536013603,0.203084975481033,0.047875929623842,-0.036826368421316,-0.104853242635727,-0.675151765346527,0.053068850189447,-0.050398591905832,0.053125832229853,0.010572753846645,-0.078672602772713,-0.138702303171158,-0.060864273458719,0.001449837698601,-0.081146255135536) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.047642879188061,0.021122071892023,0.227139696478844,-0.008789706043899,0.056502677500248,0.106353238224983,-0.014555600471795,-0.006635409314185,-0.227698326110840,-0.063988558948040,0.018675310537219,0.035502165555954,0.167379558086395,-0.147105515003204,0.099179252982140,0.225180104374886) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.028996750712395,-0.079596295952797,0.351376295089722,0.056770764291286,-0.392392933368683,-0.007016608957201,-0.176068037748337,-0.070574469864368,-0.031262774020433,0.170705795288086,0.126900032162666,-0.054846856743097,0.101503632962704,-0.179271668195724,-0.185944005846977,0.195815458893776) * MODEL1_texOff(vec2(0,0));
res += mat4(0.066259168088436,0.015825694426894,0.190009236335754,0.089470826089382,-0.011010649614036,0.099330782890320,-0.335531383752823,-0.180736050009727,-0.202930092811584,-0.028341341763735,0.184354603290558,-0.055925935506821,-0.085791766643524,0.110267505049706,-0.058651108294725,-0.133861929178238) * MODEL1_texOff(vec2(0,1));
res += mat4(0.390241622924805,-0.075848348438740,0.147307097911835,0.035452730953693,0.015617587603629,0.026638181880116,0.185863971710205,-0.000053255840612,-0.365641683340073,0.039008170366287,0.027067532762885,-0.007961065508425,-0.194714963436127,0.015958650037646,-0.049909401684999,0.078875772655010) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.028044285252690,-0.023996168747544,-0.098164528608322,0.041260752826929,-0.121494546532631,0.034086190164089,0.128130108118057,0.018450867384672,-0.027333119884133,0.153609782457352,0.000277662853478,-0.076067030429840,-0.063894100487232,-0.039844848215580,0.030660586431623,0.075595118105412) * MODEL1_texOff(vec2(1,0));
res += mat4(0.190387815237045,-0.101945407688618,-0.094104938209057,0.104946658015251,-0.048214681446552,0.127105727791786,0.216192767024040,-0.125173002481461,-0.123121768236160,-0.010292078368366,0.163389816880226,0.042927194386721,0.013842639513314,-0.044218242168427,0.000961202138569,-0.027995353564620) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.055640622973442,0.091571986675262,-0.552300691604614,-0.027984952554107,0.105284050107002,0.029494691640139,-0.079541981220245,-0.141760036349297,0.081485547125340,-0.006986708380282,-0.102320551872253,0.064904645085335,0.022746136412024,-0.067100785672665,-0.053201097995043,0.035602174699306) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.063741512596607,-0.028182538226247,-0.565301775932312,0.056285113096237,0.332995921373367,-0.031705573201180,-0.032863989472389,-0.584215819835663,-0.117621146142483,0.097652487456799,-0.205860704183578,-0.061799418181181,-0.163871973752975,-0.212145954370499,-0.037047091871500,-0.043773330748081) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.083250366151333,-0.234931364655495,-0.285339564085007,0.071890927851200,0.053846884518862,-0.139333873987198,-0.062474031001329,-0.140007033944130,-0.185396745800972,0.024293795228004,-0.115108959376812,-0.173556074500084,0.073586411774158,-0.623766362667084,-0.209453448653221,0.036866124719381) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.114318415522575,0.010598359629512,-0.619411647319794,-0.087369605898857,-0.292747586965561,-0.048508808016777,-0.017563771456480,-0.164140537381172,-0.047883633524179,-0.071336947381496,0.201100632548332,0.133526667952538,-0.007568547502160,0.068273492157459,0.022545076906681,0.073963969945908) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.051503300666809,-0.056305453181267,-0.886125326156616,-0.042234998196363,-0.246774330735207,0.115800723433495,0.221159428358078,0.735840201377869,0.077466912567616,-0.082886852324009,-0.007572561968118,0.055909339338541,-0.130894079804420,-0.360950082540512,0.021606395021081,0.308570206165314) * MODEL2_texOff(vec2(0,0));
res += mat4(0.076758347451687,-0.087558321654797,-0.434709757566452,0.020965559408069,0.073510438203812,-0.091336540877819,-0.056607671082020,-0.361265420913696,-0.092501014471054,0.222557574510574,0.034171022474766,-0.247475117444992,0.153838261961937,-0.874876379966736,-0.182215899229050,-0.088727325201035) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.160270810127258,0.001576666254550,-0.151418894529343,-0.139160081744194,-0.077040314674377,0.009440480731428,0.015341397374868,-0.003371099010110,0.070297636091709,-0.065819188952446,-0.082020252943039,0.062140915542841,-0.017201883718371,-0.116292022168636,0.078633964061737,-0.004409940447658) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.021888593211770,-0.109565332531929,-0.109821140766144,-0.037992127239704,0.080604888498783,0.028073767200112,-0.123838223516941,0.054263364523649,0.162298113107681,0.025452969595790,-0.000863496388774,0.078298814594746,0.178804665803909,-0.238440766930580,-0.107232756912708,0.082297906279564) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.012698618695140,-0.078526981174946,-0.199099227786064,0.032753761857748,-0.045643474906683,0.026561709120870,0.146453276276588,-0.064765572547913,0.209447860717773,-0.132047116756439,-0.049390200525522,0.107934392988682,0.160553127527237,-0.442324519157410,-0.088871337473392,0.128851369023323) * MODEL2_texOff(vec2(1,1));
res += mat4(0.140152692794800,0.019945237785578,-0.002047562971711,-0.027350636199117,-0.049835324287415,0.026720976457000,0.126821309328079,-0.100110299885273,-0.275393962860107,-0.044660527259111,0.165701881051064,0.107418254017830,0.134479880332947,-0.076203316450119,-0.029222890734673,-0.001567435218021) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.120331212878227,-0.214426189661026,0.203678250312805,0.059565618634224,0.110287144780159,-0.059023488312960,0.036221265792847,-0.029726155102253,0.148133903741837,-0.100803062319756,0.200237363576889,0.106521010398865,0.081549070775509,-0.197782099246979,0.026734415441751,-0.034179180860519) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.135607391595840,-0.456513851881027,0.181442230939865,0.093736089766026,0.007552881259471,0.072857871651649,-0.096616365015507,0.029042087495327,-0.110036090016365,-0.124872945249081,0.148394674062729,-0.015277447178960,0.150454655289650,-0.146592706441879,0.030798884108663,0.020109349861741) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.033920489251614,0.090314753353596,0.093273907899857,-0.089367792010307,0.036674745380878,0.062443934381008,-0.007440849673003,-0.089822396636009,-0.028990630060434,-0.022419178858399,-0.019120935350657,0.096551477909088,0.092315994203091,0.088502988219261,0.054179009050131,0.150504752993584) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.083152249455452,0.099171973764896,0.349673300981522,-0.040747452527285,0.019055712968111,0.325097322463989,-0.123073086142540,-0.190938442945480,-0.005923724267632,-0.270161777734756,-0.046031709760427,0.228106409311295,-0.095704004168510,-0.211766198277473,-0.091591633856297,-0.068787895143032) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.018286157399416,0.017461480572820,0.189786061644554,0.125739559531212,0.059299901127815,-0.091357395052910,-0.096818782389164,0.085270263254642,-0.035895723849535,0.101396031677723,-0.019274370744824,0.042270172387362,0.114476628601551,-0.182051792740822,0.052592400461435,0.036253854632378) * MODEL3_texOff(vec2(0,1));
res += mat4(0.064988426864147,0.110306121408939,0.055344022810459,-0.028305137529969,0.102100938558578,-0.013980134390295,-0.049813553690910,0.039962098002434,-0.054756637662649,0.078381367027760,-0.259802728891373,-0.011266442015767,-0.115119755268097,0.114256210625172,-0.077771991491318,0.048217736184597) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.173500522971153,0.085786379873753,0.270029395818710,-0.031944997608662,0.124827779829502,0.088505305349827,-0.037380859255791,0.063376747071743,0.060823082923889,-0.124404519796371,-0.138870596885681,-0.008194607682526,-0.158458828926086,0.091628022491932,0.288103193044662,-0.026078604161739) * MODEL3_texOff(vec2(1,0));
res += mat4(0.133641481399536,-0.096459828317165,0.229219734668732,0.084246397018433,-0.113998167216778,0.140581980347633,0.146434664726257,0.049767788499594,0.052035246044397,0.026848617941141,0.011091457679868,0.044538289308548,0.052171017974615,-0.044414084404707,0.048252664506435,-0.031499784439802) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.099841818213463,0.088203288614750,-0.073388054966927,0.058929350227118,0.091155692934990,-0.010102110914886,0.087489530444145,0.042872834950686,-0.108760625123978,0.028391260653734,0.173157647252083,0.012420309707522,-0.088480517268181,0.060289770364761,-0.075612127780914,0.012114668264985) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.126347973942757,-0.107444204390049,0.074938863515854,0.023399986326694,0.065677590668201,-0.401016384363174,-0.264046609401703,-0.454661756753922,-0.381957590579987,-0.230004489421844,0.169284492731094,0.124661885201931,-0.099120803177357,-0.021095529198647,-0.020942777395248,0.051514409482479) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.052918910980225,0.098314337432384,-0.208832263946533,0.070891834795475,-0.036997217684984,0.167808413505554,0.123897381126881,0.179388508200645,0.013208943419158,0.035950440913439,-0.022732095792890,0.090699397027493,0.069217376410961,0.234681889414787,0.072593808174133,-0.123962990939617) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.076182782649994,0.077641494572163,0.059814531356096,-0.007433458697051,-0.191331937909126,0.082537367939949,0.005204569548368,-0.080513447523117,0.142323285341263,0.071960069239140,0.096503429114819,0.007619185373187,-0.005606259685010,-0.111660145223141,-0.094536736607552,-0.099415972828865) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.394391804933548,-0.134231746196747,0.074626319110394,-0.225492209196091,0.077615246176720,0.020017320290208,0.131993934512138,0.097218669950962,0.326068669557571,-0.069344155490398,-0.162728995084763,0.000919309444726,0.019348807632923,0.050794411450624,0.090844459831715,-0.189418002963066) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.097346700727940,-0.112956665456295,-0.090975873172283,-0.044302862137556,-0.083345688879490,-0.141176655888557,-0.222112536430359,-0.018448546528816,0.086119435727596,-0.133661866188049,0.158347204327583,-0.130620315670967,-0.087141886353493,-0.403744012117386,0.169671043753624,-0.037194363772869) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.075192190706730,0.016351079568267,0.017012879252434,0.003319982672110,0.036685481667519,-0.036087162792683,0.002642981475219,-0.080964960157871,-0.027753282338381,0.137525603175163,0.148061409592628,-0.082125455141068,0.158983916044235,0.083142869174480,0.023406337946653,-0.009100693278015) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.113697551190853,0.013082001358271,0.150837764143944,0.016608072444797,0.226697668433189,-0.112589731812477,0.125675380229950,-0.053530849516392,-0.111842304468155,-0.015434447675943,-0.324680924415588,0.080721460282803,-0.054255075752735,0.094276241958141,0.034507393836975,-0.138807058334351) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.150655314326286,0.178899526596069,-0.104938521981239,0.056321926414967,0.079635038971901,-0.068433240056038,-0.060044188052416,0.082002088427544,-0.031756173819304,-0.162511259317398,-0.053374640643597,0.072645246982574,0.033674646168947,0.406167447566986,0.040324911475182,-0.140335723757744) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.023223374038935,0.028423145413399,-0.199690207839012,-0.019357152283192,-0.060503751039505,0.005392709281296,-0.170397281646729,-0.005239885300398,-0.067579165101051,0.040115926414728,0.052637927234173,0.039385858923197,-0.243130162358284,0.005818645935506,0.003709448268637,-0.073468238115311) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.067143194377422,0.070426642894745,-0.208187371492386,-0.028775084763765,-0.101837694644928,-0.025638002902269,0.006621455773711,-0.056482244282961,-0.098794788122177,0.048945903778076,-0.087723188102245,0.137525111436844,-0.156628146767616,-0.055826544761658,0.090658605098724,0.028983363881707) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.084842540323734,0.182187870144844,-0.021129764616489,-0.052152074873447,-0.102686516940594,0.133870750665665,-0.056997049599886,0.110261023044586,-0.068698965013027,-0.057133335620165,0.046694882214069,0.047084573656321,-0.052129752933979,-0.134668529033661,0.095892906188965,-0.050954308360815) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.134907826781273,-0.085653312504292,0.111695073544979,0.051408834755421,0.047777891159058,-0.073125183582306,0.004135467577726,-0.034044340252876,-0.142063498497009,0.030740020796657,0.032301515340805,-0.008781867101789,0.151059895753860,-0.005895238835365,0.060124237090349,0.286928713321686) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.160439595580101,-0.057644296437502,0.005745225585997,-0.090964905917645,-0.103528946638107,0.080846369266510,0.209415555000305,-0.022908816114068,-0.100905559957027,-0.307394117116928,-0.209653884172440,0.035030376166105,-0.140487074851990,-0.476797580718994,-0.273076176643372,-0.356903910636902) * MODEL5_texOff(vec2(0,0));
res += mat4(0.003157513448969,0.141034767031670,-0.065457582473755,-0.130497917532921,0.026895198971033,0.134655699133873,0.115480199456215,-0.098288305103779,-0.098173007369041,0.384638756513596,0.045865513384342,-0.004533278755844,0.054027657955885,-0.095825612545013,-0.095871530473232,0.120921127498150) * MODEL5_texOff(vec2(0,1));
res += mat4(0.012066334486008,0.097329884767532,-0.042596448212862,0.020451083779335,0.027970138937235,0.069979958236217,-0.098523862659931,-0.010020769201219,0.156812474131584,-0.130418658256531,0.008471856825054,0.057261478155851,-0.045389685779810,0.066599346697330,0.174289137125015,-0.028985371813178) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.167936116456985,-0.050496652722359,-0.169106915593147,0.207664325833321,-0.117544271051884,-0.121085375547409,0.086608618497849,0.067032836377621,0.039456516504288,-0.062525279819965,-0.106066778302193,0.052383366972208,0.125382468104362,-0.048591423779726,-0.024943348020315,0.138947531580925) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.038351647555828,-0.097280137240887,-0.416787892580032,0.082002617418766,-0.090023905038834,-0.172627300024033,-0.031368874013424,0.021008493378758,-0.093787200748920,0.092863827943802,-0.080666154623032,-0.042116586118937,0.130628034472466,-0.032899681478739,0.020699422806501,-0.029356230050325) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.056434705853462,-0.005971322767437,0.114476375281811,-0.095832265913486,0.071363918483257,0.004997824784368,0.099384583532810,0.021838948130608,-0.199441730976105,0.000053775642300,0.087127491831779,0.003026733640581,0.057507138699293,0.137664303183556,-0.193398654460907,-0.116076126694679) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.243330821394920,0.033971384167671,-0.110078729689121,-0.142191126942635,-0.121303044259548,-0.038846470415592,0.049108564853668,0.075513027608395,-0.097839519381523,-0.018856842070818,0.137245014309883,-0.004961156751961,-0.200627878308296,-0.127005219459534,-0.343117594718933,0.035639468580484) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.146758213639259,-0.114402256906033,0.104642748832703,-0.059193100780249,-0.034973267465830,0.213901877403259,0.013768895529211,0.072264946997166,-0.091651715338230,0.055573362857103,0.368751257658005,-0.028306540101767,0.008918970823288,0.053225524723530,0.135817840695381,-0.138236358761787) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.303710073232651,0.220135077834129,-0.004681132733822,0.062528565526009,0.069678701460361,0.000324961234583,0.150123700499535,0.081974305212498,-0.191929936408997,-0.015693692490458,0.148636519908905,0.046902593225241,0.089639067649841,0.012271739542484,-0.105370342731476,-0.024558870121837) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.090091273188591,0.112761288881302,-0.113729476928711,0.019492194056511,0.055217318236828,0.019054515287280,-0.034722093492746,0.004762400873005,-0.236400932073593,-0.189339965581894,-0.124812781810760,-0.089983403682709,0.112976528704166,0.077270366251469,0.109461158514023,0.087558433413506) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.123302653431892,-0.411026090383530,0.070489726960659,-0.112807199358940,0.194372475147247,0.204570308327675,-0.174823954701424,0.014844978228211,-0.066785089671612,0.060010004788637,-0.013125580735505,-0.111922174692154,0.050198856741190,0.029433256015182,0.116958312690258,-0.086582221090794) * MODEL6_texOff(vec2(0,1));
res += mat4(0.065780468285084,0.232228726148605,0.367469936609268,0.109559901058674,0.154703572392464,-0.038806878030300,-0.011222648434341,-0.058299835771322,0.424780339002609,-0.114329710602760,-0.097987219691277,0.142878726124763,-0.102179810404778,-0.017718208953738,0.008240312337875,-0.056939974427223) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.120475411415100,-0.000008075832739,-0.273555755615234,-0.061179850250483,0.140718266367912,-0.204704672098160,-0.138701483607292,-0.116664215922356,0.106264814734459,-0.257583737373352,0.074387490749359,-0.029423009604216,0.005692045204341,-0.030664177611470,0.082003951072693,-0.015155740082264) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.049908053129911,-0.180475518107414,-0.093969359993935,-0.236587241292000,0.111945509910583,-0.001995827304199,-0.292385935783386,0.021776176989079,0.134086191654205,0.015241560526192,0.175680249929428,-0.039827547967434,-0.050474010407925,-0.045190140604973,-0.063067086040974,-0.047915488481522) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.276823550462723,0.170015156269073,0.035150043666363,0.814179718494415) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_3x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(0.203053355216980,-0.102484695613384,0.035779200494289,-0.319097548723221);
res += mat4(0.068934291601181,-0.123304083943367,0.295540899038315,-0.209320694208145,-0.030291067436337,-0.005889156367630,-0.003565517952666,0.039275437593460,0.025090947747231,0.086554639041424,-0.094172805547714,-0.028498088940978,0.017819356173277,0.010344089008868,-0.047834303230047,-0.154906630516052) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.122158773243427,-0.173241555690765,0.403303444385529,-0.222934320569038,-0.371772706508636,0.085319317877293,-0.085119426250458,-0.015569257549942,0.033498041331768,0.078076280653477,-0.403210431337357,-0.063893720507622,-0.144620731472969,0.078246980905533,0.167684972286224,-0.037116806954145) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.146973386406898,-0.185815110802650,0.394980370998383,-0.287304103374481,-0.804396927356720,0.329825550317764,-0.516557931900024,-0.027771050110459,0.106869831681252,-0.171269312500954,-0.254863917827606,0.167801782488823,-0.078038126230240,0.106895409524441,0.032684132456779,-0.040609132498503) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.031333677470684,-0.041047941893339,0.308323502540588,-0.129842326045036,-0.109553016722202,0.047226916998625,0.023567002266645,0.141866385936737,-0.080266214907169,0.009366756305099,-0.144666224718094,0.040126420557499,-0.092471890151501,0.042514100670815,-0.186880528926849,0.033749260008335) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.310467869043350,-0.025066634640098,0.224720627069473,-0.189298510551453,-0.546869039535522,0.114579595625401,-0.114123225212097,-0.219238236546516,-0.521217048168182,0.225554689764977,-0.453201621770859,0.315136671066284,0.392155170440674,-0.361906349658966,0.944998085498810,0.010172647424042) * MODEL1_texOff(vec2(0,0));
res += mat4(0.009668642655015,-0.350458353757858,0.301281213760376,-0.160937160253525,-1.116683006286621,0.058492973446846,-0.345419138669968,-0.140157908201218,-0.107766322791576,0.060948293656111,-0.299125820398331,0.148211553692818,-0.045326925814152,0.081313036382198,-0.152035132050514,-0.009833576157689) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.020669644698501,0.016989741474390,0.255483984947205,0.233881846070290,0.073648132383823,0.009302942082286,-0.010241829790175,0.046966008841991,0.002128614578396,-0.053159259259701,0.061970122158527,-0.005890157539397,-0.172996416687965,-0.139802157878876,0.048827465623617,0.060757137835026) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.119256630539894,0.049026068300009,-0.002761361189187,-0.128121048212051,-0.263988196849823,0.013080825097859,-0.012038409709930,-0.026959063485265,-0.547878324985504,0.100025460124016,0.038894739001989,0.276412993669510,-0.214239284396172,-0.041220765560865,-0.335325568914413,-0.073328085243702) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.060563623905182,-0.135346233844757,0.309622108936310,-0.307227045297623,-0.376347184181213,0.031669981777668,0.041745960712433,-0.076190099120140,-0.111170083284378,0.064775735139847,0.024548977613449,0.164397478103638,0.055134870111942,-0.063126370310783,-0.025658810511231,-0.205481961369514) * MODEL1_texOff(vec2(1,1));
res += mat4(0.349035084247589,-0.088328436017036,0.000738663657103,0.010349027812481,0.067309163510799,-0.079069249331951,0.119958028197289,0.020813163369894,0.012617580592632,0.096746645867825,0.058923568576574,-0.357745140790939,0.138258695602417,0.044556621462107,-0.035037744790316,0.055365148931742) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.199452027678490,0.115740314126015,-0.097453393042088,-0.047921191900969,0.079070881009102,0.354898691177368,-0.028657132759690,-0.007662240881473,-0.025725800544024,0.104079142212868,0.047138851135969,-0.272850841283798,0.058620546013117,0.053897224366665,-0.087566584348679,0.114786848425865) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.151476353406906,-0.295264303684235,0.029664658010006,-0.015873366966844,-0.007015585899353,0.156241640448570,0.154922902584076,-0.057253971695900,0.110837131738663,0.207278087735176,-0.294119924306870,-0.364368200302124,0.114300861954689,-0.138433396816254,0.007222810760140,-0.025575034320354) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.240306258201599,-0.017877548933029,0.051084663718939,-0.037225347012281,0.079542912542820,0.042229611426592,-0.035473752766848,0.016816986724734,0.024627072736621,-0.337366491556168,0.088774919509888,-0.265184104442596,0.145950734615326,-0.015722740441561,-0.329915285110474,0.182654932141304) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.136460140347481,-0.257151514291763,-0.082853846251965,0.025467695668340,-0.057799156755209,-0.123603515326977,-0.240429773926735,0.163791179656982,0.024119099602103,0.188228696584702,-0.139180541038513,0.020395591855049,0.062914304435253,-0.059820484369993,-0.296853363513947,0.351972073316574) * MODEL2_texOff(vec2(0,0));
res += mat4(0.100879579782486,-0.146556794643402,0.017843835055828,-0.060355916619301,-0.038919791579247,0.185070812702179,-0.041525393724442,0.123057261109352,0.199167296290398,-0.508250594139099,-0.135139614343643,0.243324011564255,0.073340192437172,0.507506370544434,0.033966664224863,-0.016508646309376) * MODEL2_texOff(vec2(0,1));
res += mat4(0.074681207537651,-0.069010891020298,0.068829260766506,0.033061958849430,0.090350627899170,-0.058190248906612,0.021915601566434,0.329850375652313,0.059860382229090,-0.187633708119392,-0.073448188602924,-0.389809548854828,0.017194684594870,0.081561855971813,0.085832938551903,0.211444661021233) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.017275959253311,-0.103935956954956,0.201075032353401,-0.030552256852388,0.108396656811237,-0.025712767615914,-0.086165688931942,0.077217176556587,-0.104356497526169,0.156899198889732,-0.061555035412312,0.088911816477776,0.077159903943539,0.153995335102081,0.056394204497337,0.231015011668205) * MODEL2_texOff(vec2(1,0));
res += mat4(0.138192206621170,-0.039540152996778,0.134008005261421,0.036059867590666,-0.019205426797271,0.093101225793362,0.094445951282978,0.016044253483415,0.035687927156687,-0.086270697414875,-0.082487419247627,0.257888257503510,-0.208078980445862,0.078679412603378,0.148897677659988,-0.241824597120285) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.048023607581854,0.053849074989557,0.030870834365487,0.004781051073223,0.095187619328499,-0.184367150068283,0.075924620032310,0.144042298197746,0.090732470154762,0.263686478137970,-0.050201542675495,0.129840657114983,-0.015829969197512,-0.037546057254076,0.014751268550754,-0.217330634593964) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.020361108705401,-0.221964418888092,-0.017530201002955,0.016002394258976,-0.238778680562973,0.019886884838343,0.164364889264107,0.165277451276779,-0.109474815428257,-0.080024734139442,-0.218295395374298,0.050887309014797,0.033670734614134,-0.169394016265869,-0.076649151742458,-0.119966305792332) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.036590978503227,0.063741937279701,-0.546460390090942,-0.034873984754086,0.028055494651198,-0.153809055685997,0.068137496709824,0.140506789088249,-0.070491097867489,-0.026742825284600,0.113440640270710,0.160700082778931,-0.101655498147011,-0.074674017727375,0.092803023755550,-0.098190099000931) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.043814100325108,0.062454178929329,-0.022005658596754,0.033385682851076,0.002788333920762,-0.106327638030052,0.339097142219543,0.064223699271679,-0.055712938308716,0.019758488982916,-0.118254095315933,0.074672371149063,-0.034327611327171,0.076285630464554,-0.767070889472961,0.016025081276894) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.002971608890221,0.104589499533176,-0.160402163863182,-0.263346344232559,-0.120579168200493,-0.117086388170719,0.392374873161316,-0.071745559573174,0.051313273608685,0.005230935756117,-0.174699187278748,-0.427409946918488,-0.080556459724903,-0.568251848220825,0.383162885904312,0.107659637928009) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.204339042305946,-0.059367589652538,-0.086552463471889,-0.218413442373276,0.140173047780991,0.230810657143593,-0.176548495888710,0.171718358993530,0.053067475557327,-0.154824823141098,0.057630095630884,-0.035721693187952,0.094230592250824,0.035789385437965,0.278349131345749,-0.153589397668839) * MODEL3_texOff(vec2(0,1));
res += mat4(0.042718481272459,0.020438743755221,-0.044926609843969,0.049017451703548,-0.037432041019201,0.100359871983528,0.147596523165703,-0.048077158629894,0.113589182496071,-0.031067337840796,0.041056159883738,0.152802705764771,-0.064621657133102,0.093163646757603,-0.067097261548042,-0.269117712974548) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.020742943510413,0.073503747582436,0.068035721778870,0.058690056204796,0.002269534626976,-0.017834475263953,0.284325808286667,-0.015219623222947,0.044677544385195,-0.112431570887566,0.101159922778606,-0.050556167960167,0.027541106566787,-0.219704121351242,-0.080347917973995,-0.065024957060814) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.070557922124863,0.100220426917076,0.120793037116528,0.028890814632177,-0.029716968536377,0.018724046647549,0.037208572030067,0.189023122191429,-0.035539779812098,0.084476538002491,0.011173160746694,0.104960717260838,-0.068108566105366,0.043265055865049,0.141736865043640,-0.236123368144035) * MODEL3_texOff(vec2(1,1));
res += mat4(0.004407438915223,0.071237877011299,-0.050635691732168,0.048305429518223,-0.080578282475471,-0.086881317198277,0.129891604185104,0.061365954577923,0.004283082671463,-0.029098883271217,-0.021033249795437,0.083684444427490,-0.083642214536667,-0.012979906052351,-0.022251874208450,-0.049087230116129) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.247127816081047,-0.094709753990173,-0.059008792042732,0.363602757453918,0.257524609565735,0.104941025376320,0.079870574176311,-0.043710030615330,-0.175792947411537,0.209453597664833,0.061652038246393,0.148652002215385,-0.047684714198112,-0.137023910880089,0.099125459790230,-0.044586002826691) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.209046125411987,-0.091454505920410,-0.050705090165138,0.078816667199135,-0.078503556549549,-0.254118323326111,-0.189485028386116,-0.031598404049873,-0.133240267634392,-0.094321198761463,0.007190198637545,0.073389224708080,0.083600476384163,0.088009484112263,0.037197403609753,-0.118267185986042) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.102706484496593,0.116827413439751,0.042148463428020,-0.142249748110771,0.113529786467552,-0.033424679189920,0.026811771094799,0.202004626393318,0.110170856118202,0.049381755292416,0.084545306861401,-0.090061224997044,-0.054860766977072,0.048418287187815,0.120532400906086,-0.128476515412331) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.162547633051872,0.071515448391438,0.105610139667988,0.207729667425156,-0.240919038653374,0.009436345659196,-0.146487906575203,-0.202296003699303,0.147955626249313,-0.012635136954486,-0.082007110118866,0.065709337592125,-0.017612852156162,-0.044565040618181,-0.299959272146225,-0.085310459136963) * MODEL4_texOff(vec2(0,0));
res += mat4(0.045258820056915,0.076760739088058,0.073825575411320,0.300185054540634,-0.023916026577353,-0.058590821921825,0.056728754192591,0.180685713887215,0.238307803869247,0.101214058697224,-0.017430035397410,-0.167693570256233,-0.035994086414576,0.151842951774597,-0.133434578776360,-0.094994142651558) * MODEL4_texOff(vec2(0,1));
res += mat4(0.040769189596176,-0.026488805189729,-0.039738152176142,-0.006552054546773,0.087334834039211,-0.014099490828812,-0.009500285610557,0.151485592126846,0.121049746870995,0.074855707585812,0.088158816099167,0.013603168539703,-0.084808625280857,-0.029006661847234,0.076297141611576,0.075785212218761) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.019978487864137,-0.011593020521104,0.020294725894928,0.002092231763527,0.098071053624153,-0.066883154213428,0.004088080488145,0.322727948427200,-0.095895178616047,0.157804369926453,-0.021696899086237,-0.095604568719864,-0.059563048183918,-0.029701676219702,0.039036266505718,0.015252329409122) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.343195676803589,0.013762140646577,0.014262470416725,-0.157533094286919,0.132978752255440,-0.051151491701603,0.058346390724182,0.099371522665024,-0.027689149603248,-0.092484690248966,-0.150071427226067,-0.185832813382149,0.333194017410278,0.070124655961990,-0.023611459881067,-0.273482650518417) * MODEL4_texOff(vec2(1,1));
res += mat4(0.101427584886551,0.094120882451534,-0.084014333784580,0.037957947701216,0.173628717660904,-0.041807163506746,-0.103616096079350,-0.084383092820644,0.014619917608798,-0.022407570853829,-0.124719932675362,0.002931557130069,-0.045104663819075,0.027337249368429,0.124771662056446,0.045001890510321) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.100272737443447,0.211680486798286,0.038735110312700,-0.084697715938091,0.045337632298470,-0.002888639457524,-0.340215325355530,0.055775411427021,-0.092718616127968,-0.026442067697644,-0.447186380624771,-0.104802876710892,-0.183365151286125,0.081892989575863,-0.181895092129707,0.186949715018272) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.067486986517906,0.026773322373629,-0.162191838026047,0.049737900495529,-0.035703204572201,-0.097003847360611,-0.223153769969940,-0.101663142442703,-0.006641897838563,-0.083379194140434,-0.260582059621811,-0.021272990852594,0.121397227048874,0.002958204597235,0.166890263557434,0.047252163290977) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.117830835282803,0.174004659056664,-0.064842239022255,0.037338700145483,0.055076859891415,-0.069029375910759,-0.101331911981106,0.387047886848450,0.034082010388374,-0.040837723761797,0.244611307978630,-0.129499062895775,0.005885681603104,0.058584645390511,-0.101947374641895,-0.038668025285006) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.444595515727997,-0.400371253490448,0.284001350402832,0.135766267776489,0.053146608173847,0.197279319167137,-0.147130489349365,0.395452648401260,0.157519727945328,-0.529758989810944,0.597868025302887,-0.219155043363571,-0.038618721067905,-0.071388639509678,0.110614657402039,0.138090834021568) * MODEL5_texOff(vec2(0,0));
res += mat4(0.093311868607998,0.109796069562435,-0.405208081007004,0.137348473072052,0.043508913367987,0.136113151907921,-0.017708640545607,0.072935536503792,0.011308191344142,0.187620460987091,-0.408340275287628,0.159068271517754,0.095659144222736,0.030569285154343,-0.137050434947014,0.095941834151745) * MODEL5_texOff(vec2(0,1));
res += mat4(0.058063987642527,0.079815447330475,-0.294664591550827,-0.067237295210361,-0.137671440839767,0.376616626977921,-0.017712328583002,0.111887134611607,-0.014246312901378,0.095812484622002,0.013046586886048,-0.095768019556999,-0.162855312228203,0.046630755066872,0.001118844840676,0.176101416349411) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.071926437318325,0.293844789266586,-0.595378458499908,-0.086773850023746,-0.322112262248993,-0.232102021574974,-0.037815745919943,0.178741365671158,0.032854150980711,-0.040376707911491,0.045915331691504,-0.156632319092751,-0.250322729349136,0.228187158703804,-0.312233000993729,-0.177076026797295) * MODEL5_texOff(vec2(1,0));
res += mat4(0.008514880202711,0.259446650743484,-0.736292064189911,0.230303645133972,-0.090277008712292,0.028173992410302,0.212235435843468,0.134281471371651,-0.084435991942883,0.181236580014229,-0.302251577377319,0.228545978665352,0.025793505832553,0.096070885658264,0.088849142193794,0.135739251971245) * MODEL5_texOff(vec2(1,1));
res += mat4(0.074028722941875,0.142986133694649,-0.178493097424507,-0.049541685730219,0.202497631311417,-0.053508773446083,0.076925270259380,0.053957842290401,0.058983605355024,0.059070982038975,-0.201779440045357,0.190506532788277,-0.125652715563774,0.279869198799133,-0.291047006845474,0.067255347967148) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.091502636671066,-0.077382951974869,0.355731785297394,-0.078419514000416,0.024567835032940,-0.062899887561798,-0.074107490479946,0.224692925810814,0.249720603227615,0.049965586513281,-0.343163847923279,0.370979249477386,-0.234735593199730,0.036569390445948,0.062002249062061,-0.209678277373314) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.085693150758743,-0.011144693940878,0.141405597329140,-0.038047943264246,-0.017326993867755,-0.072723180055618,-0.024437818676233,0.115661866962910,0.099098287522793,0.010580630041659,-0.237149506807327,0.189811468124390,0.209349453449249,0.176397621631622,-0.048962827771902,-0.038743354380131) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.054081495851278,0.027837270870805,0.071315802633762,0.161143079400063,0.140467882156372,-0.104601100087166,0.080100432038307,0.010588145814836,0.108970999717712,0.102783650159836,-0.125623658299446,0.163341999053955,-0.134141474962234,-0.309153527021408,0.203976735472679,0.149793967604637) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.140015944838524,0.077181518077850,-0.101582668721676,0.084827587008476,-0.003573613241315,0.137744411826134,-0.179779365658760,0.111639052629471,-0.012165966443717,0.022176163271070,0.092483080923557,0.031899333000183,0.003311268519610,-0.253616154193878,0.041465912014246,0.038272105157375) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.105318285524845,-0.079684391617775,0.252067655324936,-0.095249034464359,0.066487580537796,-0.019470777362585,-0.173355802893639,-0.066938929259777,0.126746311783791,0.108859360218048,-0.104021608829498,0.126706585288048,0.027267552912235,-0.064966648817062,-0.002636641729623,-0.116749592125416) * MODEL6_texOff(vec2(0,1));
res += mat4(0.071856580674648,0.038562867790461,-0.163637802004814,0.129954189062119,-0.140140146017075,-0.097696691751480,0.370095193386078,0.079407893121243,0.003653622698039,0.085035718977451,-0.231462791562080,0.035932444036007,-0.066234037280083,0.011354499496520,0.104513205587864,-0.137354984879494) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.069736003875732,-0.012586065568030,-0.146921008825302,0.137265816330910,-0.294244199991226,0.117865025997162,0.185029447078705,0.154541358351707,0.159695744514465,-0.345220118761063,0.178091496229172,0.167099058628082,0.091370306909084,0.012092477642000,-0.096985362470150,-0.155559867620468) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.077970668673515,0.037931591272354,0.085882231593132,0.061970543116331,-0.303068488836288,-0.126845031976700,0.210810407996178,0.279368400573730,0.147769629955292,0.054647568613291,0.032882750034332,0.209439143538475,0.095205180346966,-0.239993989467621,0.222897544503212,-0.043100964277983) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.120837636291981,0.432059109210968,-0.038737300783396,-0.091136932373047) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_3x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(0.074412465095520,-0.006652879528701,0.018627474084496,0.052976537495852);
res += mat4(0.118158854544163,-0.024462215602398,0.268453687429428,0.054371956735849,0.009167633019388,0.015938052907586,0.118161164224148,0.066889926791191,-0.009693275205791,-0.056951530277729,-0.037472240626812,0.063020482659340,-0.106272183358669,0.007958600297570,-0.043521068990231,0.111893631517887) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.086050935089588,0.138703003525734,0.205375745892525,-0.010186168365180,-0.066890209913254,-0.031037017703056,0.122501760721207,-0.257323861122131,-0.017326686531305,-0.216620698571205,-0.139170944690704,0.020570971071720,0.062089022248983,0.197923645377159,-0.096379011869431,-0.062686659395695) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.043177809566259,-0.159486085176468,-0.004154731985182,0.040004026144743,0.040262568742037,0.112790532410145,0.240371346473694,0.043613452464342,0.092938505113125,-0.001913247047924,0.016390664502978,-0.087173640727997,-0.036225203424692,-0.023954981938004,0.139951258897781,0.078699074685574) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.095405369997025,-0.277223736047745,-0.107686921954155,0.394598633050919,0.064408697187901,-0.045198332518339,0.084253989160061,0.119338028132915,0.007267705164850,-0.028287462890148,-0.258636921644211,0.143769025802612,0.123129352927208,0.172350049018860,-0.267408728599548,0.122075960040092) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.054618708789349,0.122829802334309,0.319967150688171,0.052998680621386,-0.193230107426643,-0.119581811130047,0.035477489233017,-0.081372804939747,0.135597258806229,-0.162437051534653,0.069489650428295,0.013041616417468,0.019594065845013,0.001685497234575,-0.071598529815674,-0.081549987196922) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.043755196034908,-0.183051213622093,-0.138966172933578,-0.055626854300499,0.082422882318497,0.317633807659149,0.027052434161305,-0.058967657387257,0.094747729599476,-0.106750331819057,-0.198122188448906,0.046412043273449,0.015755442902446,-0.129790246486664,0.283217221498489,0.033226050436497) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.003673382336274,0.095207244157791,0.048522289842367,0.004499316681176,0.020583435893059,-0.086000882089138,0.025066670030355,0.000474047730677,0.139530166983604,-0.209978640079498,-0.092613965272903,0.308541715145111,-0.036862526088953,-0.052544265985489,-0.077620021998882,0.068161658942699) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.061190806329250,-0.014711279422045,-0.017701141536236,-0.225571036338806,-0.001771921757609,-0.123732462525368,0.011789672076702,0.101913668215275,0.025105964392424,-0.117913700640202,0.262100756168365,0.062132902443409,0.045410402119160,-0.135463431477547,0.255232989788055,0.044918201863766) * MODEL1_texOff(vec2(1,0));
res += mat4(0.070116542279720,-0.096097141504288,-0.007465860806406,0.016002418473363,0.077282384037971,-0.007230528164655,0.034589320421219,-0.144159853458405,-0.056053854525089,-0.168897241353989,-0.012614876963198,-0.004778556525707,-0.049710497260094,0.121968567371368,0.030039779841900,0.024125076830387) * MODEL1_texOff(vec2(1,1));
res += mat4(0.010669450275600,0.253316789865494,-0.005021872464567,-0.009043708443642,0.026953754946589,-0.116222508251667,0.169587507843971,0.140970990061760,0.022199193015695,0.095636531710625,-0.079034499824047,-0.193910703063011,0.087652824819088,-0.023757232353091,0.200209960341454,-0.189134493470192) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.009277424775064,-0.018224788829684,-0.083496317267418,-0.047138206660748,0.021468760445714,-0.413332700729370,-0.315364062786102,0.041473038494587,-0.078358776867390,0.124874331057072,-0.076937660574913,-0.001020329771563,0.022570019587874,-0.040685556828976,-0.105676054954529,-0.375927090644836) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.014762667939067,0.123108625411987,-0.075077354907990,0.086013138294220,0.007653465960175,0.143220052123070,-0.154819831252098,0.040557518601418,0.095175445079803,-0.198249429464340,-0.047407854348421,-0.037052001804113,-0.025734854862094,0.076749436557293,0.179405510425568,-0.078468166291714) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.082226805388927,0.054602891206741,0.001107977586798,-0.032733209431171,-0.418148994445801,-0.271116197109222,-0.248535841703415,0.551347613334656,0.038472641259432,0.119314171373844,-0.092100448906422,0.060692962259054,0.173248499631882,0.142600968480110,-0.022507838904858,-0.083120718598366) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.109204255044460,0.180552542209625,-0.075273051857948,0.131293341517448,0.326753407716751,0.311263293027878,0.207431390881538,-0.422086477279663,-0.055418133735657,-0.317936509847641,-0.379785567522049,0.534111917018890,-0.071662537753582,-0.074606694281101,0.308543443679810,-0.835558652877808) * MODEL2_texOff(vec2(0,0));
res += mat4(0.012217323295772,0.214106097817421,-0.037264868617058,0.073188953101635,-0.027575226500630,0.101446673274040,0.071885511279106,-0.099536798894405,0.195904195308685,-0.048797018826008,-0.122042730450630,-0.163506150245667,-0.092577941715717,0.259067207574844,-0.257791340351105,-0.066760726273060) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.083094730973244,0.154919102787971,-0.110146969556808,0.021611083298922,-0.184475928544998,0.059103652834892,-0.054917559027672,0.330836266279221,-0.078422032296658,-0.043679431080818,0.194541916251183,-0.044786706566811,-0.081028975546360,0.109677165746689,0.111769251525402,-0.076825745403767) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.038422185927629,0.303072303533554,0.002438639057800,0.078030727803707,0.195850536227226,0.159851104021072,0.068066105246544,-0.195857122540474,-0.018207013607025,0.095998764038086,0.012086835689843,0.151630908250809,-0.186032831668854,0.088224552571774,0.163081020116806,-0.018171003088355) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.066881380975246,0.292893856763840,-0.057230826467276,0.108623184263706,0.027874058112502,-0.080935403704643,0.071567893028259,0.020425379276276,0.003703119698912,-0.015265292488039,-0.017670933157206,-0.028941646218300,-0.043615315109491,0.059265982359648,0.033540707081556,-0.197693437337875) * MODEL2_texOff(vec2(1,1));
res += mat4(0.091559052467346,-0.139198735356331,-0.044928703457117,-0.369596451520920,-0.088446989655495,0.049422491341829,0.157826274633408,0.067906692624092,-0.114985398948193,0.042466901242733,-0.037919893860817,0.131979286670685,0.042867403477430,-0.136680647730827,0.048658408224583,-0.015296935103834) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.014245012775064,-0.166038453578949,0.039217695593834,-0.196440830826759,-0.071164160966873,0.144253283739090,-0.004068235401064,0.062143098562956,0.029493393376470,-0.106156773865223,-0.108287364244461,0.163379460573196,0.083391100168228,-0.051784154027700,-0.114263564348221,-0.035303078591824) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.070503212511539,-0.139101371169090,-0.167649641633034,0.191626057028770,0.055524732917547,0.114250451326370,0.015159113332629,0.001891254098155,-0.027892861515284,-0.192070201039314,-0.056153111159801,0.019985236227512,0.052857123315334,-0.012704316526651,0.053599797189236,-0.046089336276054) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.063380680978298,-0.213254898786545,-0.032724361866713,-0.367340654134750,-0.298483490943909,-0.149891197681427,-0.020815636962652,-0.106191679835320,-0.221933603286743,-0.270866304636002,0.212900832295418,0.372503131628036,0.087833493947983,0.042556148022413,-0.167186841368675,0.140478461980820) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.116059415042400,-0.097630985081196,0.047466184943914,-0.185860559344292,0.185212016105652,0.300657957792282,0.124250128865242,-0.343755334615707,-0.005020422860980,-0.125302299857140,0.148640975356102,-0.213275834918022,0.315696895122528,-0.109559193253517,-0.176279544830322,-0.372974783182144) * MODEL3_texOff(vec2(0,0));
res += mat4(0.009925852529705,0.054859243333340,-0.070591114461422,0.145810559391975,-0.112254232168198,0.127115696668625,0.001418531872332,-0.025384340435266,0.044963654130697,-0.051731314510107,-0.034288838505745,0.063944771885872,-0.059779755771160,-0.042497381567955,-0.221213385462761,0.093273729085922) * MODEL3_texOff(vec2(0,1));
res += mat4(0.001232538488694,-0.173477083444595,0.031934302300215,-0.136713564395905,-0.046339765191078,0.170984625816345,-0.051268368959427,0.002047382527962,-0.195280820131302,0.267057418823242,-0.084665417671204,0.113673426210880,-0.118212260305882,-0.093030951917171,-0.113959774374962,-0.070869222283363) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.026398766785860,-0.004368053283542,-0.094186745584011,-0.125082671642303,-0.105141967535019,-0.170216023921967,-0.210525736212730,-0.050087351351976,0.081371165812016,0.134899750351906,-0.121542565524578,-0.061023924499750,0.226110845804214,0.041402742266655,-0.127333164215088,-0.144904211163521) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.072363652288914,-0.164593011140823,-0.115906178951263,0.021591220051050,-0.038872260600328,-0.127775952219963,-0.034870136529207,0.080156177282333,0.066345199942589,0.081228658556938,0.132145896553993,-0.035357885062695,0.088124498724937,-0.064591392874718,-0.029810732230544,-0.004152883775532) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.021086415275931,-0.135283827781677,-0.128257945179939,0.017939738929272,0.148974046111107,-0.022809358313680,-0.237734556198120,-0.374542087316513,-0.105679690837860,-0.325122833251953,0.016582213342190,0.255626440048218,0.010146427899599,-0.057972054928541,-0.245634093880653,0.029745033010840) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.107063539326191,-0.300027877092361,0.052290998399258,0.081353642046452,-0.354979664087296,-0.043208573013544,-0.614686429500580,0.080008722841740,-0.140624701976776,0.253883689641953,-0.008973015472293,-0.097907483577728,-0.001714773592539,-0.202921286225319,-0.363739252090454,0.084447525441647) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.008300893940032,0.022265696898103,-0.064671956002712,-0.011382605880499,-0.059837266802788,-0.035860698670149,-0.046531513333321,-0.108899712562561,0.026963038370013,0.065157137811184,0.093729838728905,-0.075003772974014,-0.021515676751733,-0.005749007686973,-0.012013139203191,0.126096129417419) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.153353512287140,-0.135114163160324,0.227575242519379,-0.201484590768814,0.109879992902279,-0.037346452474594,0.158753424882889,-0.016473494470119,0.006389629561454,-0.114673241972923,-0.015967618674040,-0.122730948030949,-0.194229781627655,0.061191901564598,0.090874522924423,0.107328757643700) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.066019065678120,0.098796099424362,0.041135754436255,-0.095491603016853,-0.116170167922974,0.126740172505379,0.184558242559433,0.057926043868065,0.099329300224781,0.267027825117111,0.045244287699461,-0.087455667555332,0.548083126544952,0.020533278584480,0.009246865287423,-1.007499456405640) * MODEL4_texOff(vec2(0,0));
res += mat4(0.114704862236977,0.175483733415604,-0.154011055827141,0.060295879840851,0.013206307776272,0.250094234943390,0.023532148450613,-0.038397401571274,-0.095361679792404,0.087377160787582,-0.206987082958221,0.082259654998779,-0.193123206496239,0.071058854460716,0.202521219849586,-0.106944695115089) * MODEL4_texOff(vec2(0,1));
res += mat4(0.033722281455994,0.106276385486126,-0.029278876259923,0.020768864080310,-0.077850125730038,0.038408193737268,-0.041011687368155,-0.092733547091484,0.218975171446800,0.108657933771610,-0.005727029405534,-0.204488337039948,0.024834802374244,0.016523933038116,-0.071764416992664,0.021278787404299) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.038010742515326,0.063422694802284,0.094664104282856,0.067097567021847,-0.168546810746193,0.151323512196541,-0.041799012571573,0.167558610439301,-0.181126147508621,-0.127026587724686,-0.051006961613894,0.138630539178848,0.526690721511841,0.214698269963264,0.046530358493328,-0.246335357427597) * MODEL4_texOff(vec2(1,0));
res += mat4(0.051122561097145,0.039466418325901,0.137964650988579,-0.062036462128162,-0.081495881080627,-0.027725337073207,-0.001968557946384,-0.015721390023828,-0.014033263549209,-0.098639316856861,0.151085272431374,0.029234930872917,-0.114457719027996,-0.264942049980164,0.033762048929930,0.051826667040586) * MODEL4_texOff(vec2(1,1));
res += mat4(0.115662485361099,0.169125780463219,0.089079461991787,-0.088839471340179,0.029244476929307,-0.072049841284752,-0.000236304811551,0.164494067430496,-0.046768561005592,-0.050087489187717,-0.076073788106441,0.067630425095558,-0.002682901220396,0.057287022471428,-0.015916593372822,0.090647242963314) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.089839570224285,-0.021241353824735,-0.011201963759959,-0.066786609590054,0.061619427055120,0.028726231306791,-0.004890304524451,-0.037225957959890,0.053367413580418,0.175319850444794,0.166106179356575,0.019881978631020,-0.112863451242447,-0.002199480542913,0.209899172186852,-0.000466803146992) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.033255957067013,-0.027465380728245,0.008161024190485,0.053270407021046,-0.018517171964049,-0.030481064692140,-0.007195735350251,-0.044081490486860,0.007657498586923,-0.186266168951988,-0.028380744159222,-0.009443281218410,-0.049449898302555,0.056285474449396,-0.059242825955153,-0.005083807278425) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.045754600316286,0.090742558240891,-0.326922088861465,0.067838579416275,-0.118942104279995,0.016984641551971,0.053541269153357,0.260107785463333,0.091682702302933,0.234440550208092,-0.010615332983434,-0.141398936510086,0.368614614009857,0.138383388519287,0.249721109867096,-0.211889803409576) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.027103012427688,0.135484084486961,-0.279196858406067,-0.213891893625259,0.026392884552479,-0.080163389444351,0.038260150700808,-0.039146874099970,-0.422540754079819,-0.261142194271088,-0.202774628996849,-0.174582079052925,-0.254726052284241,-0.089133650064468,-0.206569299101830,-0.040682744234800) * MODEL5_texOff(vec2(0,0));
res += mat4(0.117323786020279,0.062202099710703,0.162595838308334,-0.135393917560577,0.077244900166988,0.036947473883629,-0.090178743004799,-0.084200508892536,0.183406502008438,-0.000441011623479,0.050752479583025,-0.008280436508358,-0.104163855314255,0.070370495319366,-0.033492885529995,0.033722277730703) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.104190580546856,-0.141742751002312,-0.088336750864983,-0.012128418311477,-0.146408304572105,0.150807738304138,-0.073021307587624,0.100771598517895,0.178327038884163,0.141791850328445,0.090246863663197,-0.040379375219345,-0.030877592042089,-0.013299033045769,-0.061552487313747,-0.013535846024752) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.053996235132217,-0.162474185228348,0.052011288702488,0.102449499070644,0.030638359487057,-0.153657704591751,0.033804900944233,-0.152630627155304,-0.270619153976440,-0.156016111373901,-0.021954532712698,-0.006337823346257,-0.154270827770233,-0.028055552393198,0.049174651503563,-0.090717777609825) * MODEL5_texOff(vec2(1,0));
res += mat4(0.030007189139724,-0.023281918838620,-0.046902019530535,0.014062492176890,0.078650392591953,0.058280963450670,0.017844650894403,-0.097050830721855,0.169537499547005,0.154026493430138,0.043278701603413,0.041811898350716,0.011436290107667,-0.096243165433407,0.057358697056770,-0.052445232868195) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.107969880104065,-0.059950605034828,0.067743346095085,-0.085451729595661,0.007117642089725,-0.072082027792931,0.074931681156158,-0.004845114890486,-0.075245611369610,-0.034461580216885,0.001736674108543,-0.018689662218094,-0.088717244565487,0.273412257432938,-0.413093864917755,0.134939163923264) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.008065056987107,-0.004426453262568,0.060033570975065,-0.030374722555280,-0.065260961651802,0.058699183166027,0.049340277910233,0.072561509907246,-0.089325636625290,-0.029936797916889,0.303299784660339,0.076100274920464,0.002280097687617,-0.073629580438137,0.086560741066933,-0.068853870034218) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.021278813481331,-0.164896950125694,0.074645094573498,-0.027564560994506,0.024314112961292,-0.051863510161638,0.133136808872223,0.056928575038910,-0.073887415230274,-0.064850732684135,0.093327827751637,0.026987629011273,0.083452388644218,-0.032991170883179,0.121600240468979,-0.118833035230637) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.105507567524910,0.134534955024719,-0.076902449131012,0.125233292579651,0.053435094654560,0.180328741669655,-0.148324534296989,0.020639296621084,-0.012717915698886,-0.111525595188141,-0.187121450901031,0.432210981845856,0.224360361695290,0.013119007460773,-0.001750026829541,0.167845085263252) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.060905408114195,-0.003329145489261,0.079683519899845,0.032401207834482,-0.033896628767252,-0.333105206489563,0.023704526945949,0.330229610204697,0.104592040181160,-0.076332852244377,-0.101407818496227,0.068044774234295,-0.312040746212006,-0.269589662551880,-0.222311362624168,0.187458604574203) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.068589463829994,-0.047501239925623,-0.107595428824425,-0.016833378002048,0.018766375258565,-0.045789420604706,0.001909405924380,-0.222608193755150,0.036426395177841,-0.031635504215956,-0.051740143448114,0.008189166896045,0.099300861358643,-0.004869835451245,-0.046304054558277,-0.166510134935379) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.013150103390217,-0.094608835875988,0.173774063587189,-0.048501718789339,0.038837313652039,0.224963650107384,0.133002161979675,-0.199285939335823,-0.172155126929283,0.058559659868479,0.008423715829849,0.067734263837337,0.047806557267904,-0.103756085038185,-0.126611292362213,0.083672329783440) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.058251570910215,0.113180644810200,0.138970658183098,-0.060558952391148,-0.232603460550308,0.194204792380333,0.044036202132702,-0.262895524501801,0.066090874373913,0.029895884916186,0.033917415887117,-0.021057613193989,-0.138422101736069,-0.139072015881538,0.162960648536682,0.033559016883373) * MODEL6_texOff(vec2(1,0));
res += mat4(0.136732831597328,0.120345778763294,0.085581161081791,-0.164145573973656,0.140418231487274,0.002731642685831,-0.111501172184944,0.031271707266569,-0.113894768059254,-0.037669587880373,0.145275637507439,-0.084139525890350,0.041205931454897,0.197056114673615,-0.019272683188319,-0.022299243137240) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.141750946640968,-0.262659162282944,0.098114416003227,-0.032900493592024) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_3x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(0.053378198295832,0.144429191946983,-0.065924011170864,0.036747042089701);
res += mat4(0.303322046995163,-0.067197583615780,-0.198983490467072,0.052533704787493,0.036709140986204,-0.070770792663097,-0.009346766397357,-0.023010876029730,0.062366660684347,0.045859925448895,0.042372047901154,0.015136523172259,0.096586860716343,-0.094963409006596,-0.139910802245140,0.111661642789841) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.175104111433029,-0.125300243496895,-0.191632896661758,0.039230562746525,-0.093517310917377,-0.080756500363350,0.045538712292910,0.112493768334389,0.091282948851585,-0.083502791821957,0.157025665044785,0.012189222499728,-0.078875854611397,-0.016695745289326,0.111812748014927,0.079768188297749) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.345655083656311,-0.035293571650982,-0.215680301189423,-0.073178589344025,-0.180669561028481,-0.337729305028915,0.147406250238419,0.123878568410873,-0.109309114515781,0.017367491498590,0.178102388978004,0.147423774003983,-0.129981726408005,0.041143324226141,0.034409377723932,-0.156703978776932) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.091470710933208,-0.043079204857349,-0.057609435170889,-0.123960331082344,-0.014210785739124,-0.105130031704903,-0.010624262504280,-0.067306883633137,-0.075210861861706,-0.079301118850708,0.101836666464806,0.006976886186749,-0.107895866036415,0.076331488788128,-0.035752933472395,-0.072887614369392) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.057939931750298,0.030831081792712,-0.276965707540512,-0.031976591795683,-0.111665368080139,-0.071789510548115,0.013199306093156,0.197132110595703,0.329957395792007,-0.013772428967059,0.184634804725647,-0.100179411470890,0.095879577100277,0.286817640066147,-0.268242835998535,0.012118788436055) * MODEL1_texOff(vec2(0,0));
res += mat4(0.024777051061392,0.038436587899923,-0.294342339038849,0.150085255503654,-0.117799706757069,-0.531155884265900,-0.584991097450256,-0.085187785327435,-0.139029800891876,-0.254742711782455,0.245673254132271,0.113821603357792,0.027385184541345,-0.136966526508331,0.058098573237658,0.053866095840931) * MODEL1_texOff(vec2(0,1));
res += mat4(0.219145640730858,0.034912098199129,-0.245005980134010,-0.044182270765305,0.053890995681286,0.041360817849636,-0.027533518150449,-0.046231262385845,-0.069522835314274,0.075156278908253,0.066669315099716,0.029487671330571,0.070607408881187,-0.013777156360447,-0.086773544549942,0.048074569553137) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.161640346050262,0.093421898782253,0.067106097936630,0.256510794162750,-0.150452151894569,0.085653766989708,-0.154143601655960,-0.074047453701496,0.042100954800844,0.545468270778656,-0.023663328960538,-0.234257593750954,0.122389182448387,-0.087445788085461,-0.048165511339903,-0.241585180163383) * MODEL1_texOff(vec2(1,0));
res += mat4(0.045019786804914,-0.080487944185734,-0.331282198429108,0.095313929021358,-0.324751079082489,-0.027204476296902,-0.483817338943481,-0.143254727125168,-0.262919098138809,0.146666377782822,0.174881890416145,-0.066508501768112,0.083139814436436,-0.065169259905815,0.065103814005852,-0.009406699799001) * MODEL1_texOff(vec2(1,1));
res += mat4(0.105777591466904,0.106240212917328,0.070102348923683,-0.129344746470451,0.132261082530022,0.069754891097546,0.031581159681082,-0.154980123043060,0.016316471621394,-0.054343402385712,-0.181484296917915,0.059758327901363,0.205697610974312,-0.037162002176046,-0.038824103772640,-0.039581008255482) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.032036118209362,0.095015630125999,0.020643467083573,-0.123671166598797,0.227627903223038,-0.328961104154587,-0.018324565142393,-0.188464999198914,-0.045118529349566,0.116253189742565,-0.360173821449280,-0.173526942729950,0.136445656418800,-0.021287387236953,0.046261765062809,-0.281489580869675) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.177759602665901,-0.063864640891552,0.120494939386845,-0.240332826972008,-0.042150955647230,-0.431060940027237,-0.096305862069130,0.084611445665359,-0.034339442849159,-0.203367665410042,-0.051328364759684,-0.144350692629814,0.188814520835876,-0.066758297383785,0.032117407768965,-0.206124693155289) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.099982209503651,0.060714904218912,-0.057122800499201,0.083209060132504,0.043607801198959,0.001038222457282,-0.201926663517952,0.127373784780502,0.003805307205766,0.057413421571255,-0.175276011228561,0.104282654821873,-0.004850114230067,0.085514888167381,0.103497810661793,0.132247284054756) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.282647371292114,-0.266439318656921,-0.136419355869293,0.144860014319420,0.279637068510056,-0.126350879669189,-0.349130570888519,-0.203891292214394,0.058540433645248,-0.212418511509895,-0.313407391309738,-0.110318720340729,0.079829692840576,0.059910997748375,0.017658321186900,0.024303985759616) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.008814356289804,0.109972022473812,-0.087982684373856,-0.384551197290421,-0.207405269145966,0.089540168642998,-0.250523865222931,-0.192131578922272,0.173245623707771,-0.042692940682173,-0.372516959905624,-0.251909881830215,-0.053843665868044,-0.280087053775787,0.054292876273394,0.016061725094914) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.172360762953758,0.008414705283940,-0.010606043972075,-0.091965615749359,-0.018020525574684,-0.110253565013409,-0.079968646168709,0.149229973554611,0.063957631587982,-0.054045531898737,-0.119328148663044,0.016263151541352,-0.303965091705322,0.082652822136879,0.073557630181313,0.182292774319649) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.308656156063080,-0.030725501477718,0.014367019757628,0.058659132570028,-0.212417736649513,0.189470678567886,0.283462882041931,0.163684159517288,-0.144599035382271,-0.193215951323509,-0.082971200346947,0.138112887740135,-0.292638719081879,0.099145039916039,0.388573199510574,0.239066660404205) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.395503222942352,0.124536938965321,-0.338754892349243,-0.221012055873871,-0.037466518580914,0.211048632860184,0.169853463768959,-0.076926968991756,0.022338043898344,0.160952121019363,0.912059366703033,0.094637356698513,-0.159174308180809,0.206172600388527,-0.735594987869263,0.098975516855717) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.103075213730335,0.064325362443924,0.062058277428150,-0.088747739791870,-0.090992406010628,0.072203226387501,-0.098908014595509,0.181780397891998,-0.152531281113625,0.184623390436172,-0.065562628209591,0.251606971025467,0.087871439754963,-0.154203698039055,-0.111910343170166,-0.039510332047939) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.256855517625809,0.075903534889221,0.053388182073832,-0.209253475070000,-0.085088543593884,-0.081889726221561,-0.167936190962791,-0.109122812747955,0.087714970111847,-0.185073375701904,-0.180512636899948,0.195146635174751,0.076283194124699,0.027878211811185,-0.198346436023712,0.003118361346424) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.167241588234901,-0.175230786204338,-0.125172987580299,-0.111561693251133,-0.030634902417660,-0.124556355178356,-0.010725412517786,0.252369165420532,-0.057280920445919,0.059905234724283,0.145091682672501,0.088074967265129,0.038839019834995,-0.097227819263935,-0.225195288658142,0.195438697934151) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.041367474943399,0.044587474316359,0.019319556653500,0.052015651017427,-0.011274868622422,0.084098279476166,-0.006753080058843,-0.049823675304651,0.032035574316978,-0.028496958315372,0.152714058756828,-0.136915922164917,-0.133010014891624,0.080186404287815,0.033334001898766,0.163622960448265) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.023273780941963,-0.053922638297081,-0.033447816967964,-0.077773943543434,-0.092627502977848,0.138900712132454,0.159571498632431,-0.193275973200798,0.061244156211615,0.056497890502214,-0.077997110784054,-0.164209872484207,-0.019039276987314,-0.120483636856079,0.013176387175918,-0.025469589978456) * MODEL3_texOff(vec2(0,0));
res += mat4(0.018398322165012,-0.038143344223499,-0.315311163663864,-0.192670956254005,-0.061050426214933,0.074859730899334,-0.033949613571167,-0.030019152909517,0.086958609521389,0.041675612330437,-0.063545145094395,0.007441154215485,-0.076862581074238,0.146171554923058,-0.073564551770687,-0.037524297833443) * MODEL3_texOff(vec2(0,1));
res += mat4(0.062390770763159,0.090470105409622,-0.077228255569935,0.052224129438400,0.165633112192154,-0.046275373548269,-0.305039733648300,0.015445439144969,-0.031388625502586,-0.011072829365730,-0.050498805940151,0.002435919828713,-0.123341418802738,-0.005286570638418,-0.084901258349419,0.147240430116653) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.045084279030561,0.146169394254684,-0.303074091672897,0.035453777760267,0.016008367761970,-0.064867816865444,-0.232585102319717,0.272831916809082,-0.165464863181114,0.095604367554188,-0.189037233591080,0.126189202070236,0.128059223294258,0.227576076984406,-0.113085336983204,-0.326685935258865) * MODEL3_texOff(vec2(1,0));
res += mat4(0.032249026000500,0.098557636141777,-0.107804544270039,-0.130945533514023,0.033005867153406,0.068189144134521,0.003047907957807,0.339140385389328,0.128749802708626,0.081568352878094,0.127804160118103,0.111833542585373,0.065527997910976,0.058124762028456,-0.412195831537247,0.007587960921228) * MODEL3_texOff(vec2(1,1));
res += mat4(0.082540884613991,0.153827890753746,0.020500872284174,0.236593618988991,-0.037408389151096,0.093871191143990,-0.097864180803299,-0.145045787096024,0.161824837327003,-0.053688734769821,0.048993520438671,-0.042924135923386,-0.034665066748857,-0.024454360827804,0.053707305341959,0.076622910797596) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.165092945098877,0.028963631018996,-0.005386276170611,0.211424887180328,0.137573942542076,-0.054725140333176,-0.139161586761475,0.275900930166245,-0.218789771199226,-0.095489509403706,0.091402664780617,0.020688388496637,0.031126048415899,-0.054059591144323,-0.025275127962232,0.159243717789650) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.045100536197424,-0.034038521349430,-0.094280272722244,0.069599434733391,-0.087271161377430,-0.124528616666794,0.017119243741035,0.111733347177505,0.055022019892931,-0.000590311305132,0.025388592854142,0.173003166913986,-0.094960600137711,-0.149084106087685,-0.045242708176374,0.224748611450195) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.123503655195236,0.124112851917744,-0.000801047135610,-0.116691984236240,0.152844533324242,-0.061665892601013,0.034267015755177,-0.099534757435322,0.338249206542969,-0.073789343237877,-0.132652342319489,0.000500063702930,0.092996403574944,-0.041384890675545,-0.079826116561890,-0.123500883579254) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.081311717629433,-0.193288937211037,-0.141056507825851,-0.139081582427025,-0.122350201010704,-0.217619150876999,-0.288845926523209,-0.118521898984909,-0.037198223173618,0.084956549108028,-0.167656600475311,-0.229883670806885,0.148308634757996,-0.152946710586548,0.001476003671996,-0.494088500738144) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.145532190799713,0.333608210086823,0.387142300605774,-0.044882576912642,-0.127787306904793,-0.062200985848904,0.131598874926567,-0.094013750553131,0.208307161927223,0.078052267432213,-0.147750228643417,0.010385712608695,0.029507631435990,0.005975609645247,0.255360543727875,-0.526665568351746) * MODEL4_texOff(vec2(0,1));
res += mat4(0.156687617301941,-0.032435987144709,-0.052040342241526,-0.153238594532013,0.161347433924675,0.042476449161768,0.187808543443680,0.145773619413376,0.109704166650772,0.015348505228758,0.108151346445084,0.208906263113022,0.099944606423378,0.010287693701684,0.018585180863738,0.028305549174547) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.011906361207366,-0.033407062292099,-0.172287732362747,0.119963586330414,-0.017580179497600,-0.062510631978512,-0.124765694141388,0.110366120934486,-0.172666162252426,-0.003343954449520,0.176117077469826,-0.146196410059929,-0.103201501071453,0.249854132533073,0.199060261249542,0.067867152392864) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.019364612177014,-0.131437420845032,-0.146979704499245,-0.392595827579498,-0.128785297274590,0.140212595462799,0.072931587696075,0.120804220438004,0.069379329681396,-0.106693603098392,-0.140863224864006,-0.165076628327370,-0.048794295638800,0.068141996860504,0.023885309696198,0.247046381235123) * MODEL4_texOff(vec2(1,1));
res += mat4(0.043568372726440,0.035754021257162,0.027844129130244,-0.018346676602960,0.258854269981384,-0.115220881998539,0.004034203477204,0.092344865202904,0.079348474740982,-0.006154019385576,-0.057998612523079,0.076802179217339,0.093633830547333,-0.076196573674679,0.052687939256430,0.129981473088264) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.038274880498648,0.116423524916172,0.166034892201424,0.008506247773767,0.225723028182983,-0.248204782605171,0.012604171410203,0.037006828933954,-0.214656546711922,-0.092429868876934,0.051224146038294,-0.237904310226440,-0.065862081944942,-0.038559507578611,0.085885249078274,0.093628503382206) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.130283147096634,-0.023297263309360,0.007230225019157,-0.013416416943073,0.089565888047218,-0.131778344511986,-0.202907890081406,-0.095723643898964,0.065442427992821,0.130031690001488,-0.032527443021536,-0.074535973370075,-0.017979364842176,0.021634705364704,0.055316794663668,-0.039862684905529) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.026405550539494,-0.035943645983934,0.062238540500402,-0.115055866539478,0.020378360524774,0.061953585594893,0.073047079145908,0.083098664879799,-0.098690338432789,-0.069970317184925,0.085040740668774,-0.070235885679722,0.042392339557409,-0.069287054240704,0.029799643903971,-0.047498188912868) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.132319718599319,-0.191263973712921,-0.019239034503698,0.063176549971104,0.032934166491032,0.260456323623657,0.364524275064468,-0.004605767317116,0.061712339520454,0.033513121306896,0.074930779635906,-0.007204263471067,0.184699118137360,-0.264006942510605,-0.107949458062649,0.055055197328329) * MODEL5_texOff(vec2(0,0));
res += mat4(0.080703794956207,-0.332620024681091,-0.061465878039598,-0.009834093973041,0.005956870969385,-0.057324290275574,-0.053702428936958,-0.120542176067829,0.007351990323514,-0.119094155728817,0.070682056248188,0.177096351981163,0.126048371195793,-0.185976952314377,-0.013278659433126,0.122776970267296) * MODEL5_texOff(vec2(0,1));
res += mat4(0.010028718970716,-0.065928272902966,0.211569532752037,-0.120770342648029,-0.353304088115692,0.015208966098726,0.262925863265991,-0.036882895976305,0.053223893046379,-0.120198719203472,-0.064482674002647,-0.009063469246030,0.092757433652878,-0.119871281087399,-0.070466339588165,-0.066304877400398) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.183989420533180,0.103422254323959,0.012358258478343,-0.158643573522568,-0.153523743152618,0.326251000165939,0.159596323966980,0.122989416122437,0.043806001543999,-0.115937419235706,-0.318380385637283,0.022445751354098,0.083326779305935,-0.124361328780651,-0.132501065731049,0.084882982075214) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.082509726285934,-0.407126575708389,0.239258259534836,-0.030931601300836,-0.113993763923645,-0.051194611936808,-0.082084067165852,0.032428365200758,-0.069979503750801,0.056148264557123,0.058245565742254,0.021456491202116,-0.002870016964152,-0.119547620415688,-0.050634596496820,0.143898248672485) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.048759408295155,-0.059123288840055,0.149603441357613,0.154383063316345,0.182289913296700,0.078881278634071,0.106287717819214,0.101607479155064,0.006925441324711,-0.043291956186295,0.169873774051666,-0.131639748811722,-0.097059316933155,-0.049389205873013,0.048175744712353,0.090872980654240) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.088949441909790,0.153426557779312,-0.140189945697784,0.079275570809841,0.109691649675369,-0.169204041361809,-0.200936466455460,0.030039671808481,-0.069959416985512,0.066627621650696,0.167329683899879,-0.028457341715693,-0.103797212243080,-0.304913192987442,-0.343360841274261,-0.048645533621311) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.145563602447510,0.113225124776363,-0.037712443619967,-0.045028522610664,-0.036763940006495,-0.041046507656574,-0.003013075562194,-0.094914898276329,-0.101903922855854,0.087232947349548,0.110628679394722,0.182352736592293,0.164815068244934,-0.075551539659500,-0.069592490792274,-0.125912964344025) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.127020120620728,0.060912285000086,0.119285307824612,-0.059211384505033,0.072899818420410,0.152520328760147,0.067295402288437,-0.015830878168344,-0.137452036142349,0.091073878109455,0.229044735431671,-0.430339366197586,-0.219383433461189,-0.050305351614952,-0.078232176601887,-0.301469624042511) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.086888320744038,0.013217242434621,-0.336459666490555,-0.005233641713858,0.379384487867355,-0.043308660387993,-0.211094334721565,0.066673979163170,-0.113483771681786,-0.102828897535801,0.074747018516064,-0.430243641138077,-0.049259215593338,0.206419289112091,-0.085559844970703,-0.091531842947006) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.002796844346449,-0.026722893118858,-0.111608028411865,-0.090132653713226,-0.031546115875244,0.197513788938522,-0.254136592149734,-0.045959677547216,-0.136446997523308,0.171306222677231,0.216700986027718,-0.269556105136871,0.065985985100269,0.251085072755814,-0.081413984298706,0.197328418493271) * MODEL6_texOff(vec2(0,1));
res += mat4(0.024282531812787,0.070754073560238,0.240534767508507,-0.166513890028000,-0.317822575569153,0.065131545066833,0.166227519512177,0.056452456861734,0.038322988897562,0.020541382953525,0.230671718716621,0.023525739088655,-0.077670745551586,0.069205500185490,-0.085376270115376,0.214371696114540) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.051330748945475,0.020643265917897,-0.040796514600515,0.318608999252319,-0.255137592554092,-0.029675949364901,0.170921906828880,0.148358613252640,0.136424288153648,0.002804032992572,-0.018058285117149,-0.130620330572128,0.088722459971905,-0.007235789671540,-0.076302237808704,-0.155687168240547) * MODEL6_texOff(vec2(1,0));
res += mat4(0.000873383309226,-0.083716548979282,-0.393322020769119,0.182393476366997,-0.160504207015038,-0.272098958492279,0.122063413262367,0.241431996226311,-0.025110555812716,0.182887732982635,0.198154434561729,-0.101689189672470,-0.111684836447239,0.160843715071678,-0.115262925624847,-0.166505217552185) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.048433545976877,0.008459184318781,-0.082805939018726,-0.054924342781305) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_3x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(0.116591185331345,-0.230456978082657,-0.112833917140961,0.072265610098839);
res += mat4(0.095554262399673,0.041847743093967,-0.039292801171541,-0.032741431146860,-0.032587684690952,-0.085657618939877,-0.026457289233804,0.036411829292774,-0.034059487283230,-0.113462097942829,-0.107699334621429,0.016816006973386,-0.069701723754406,-0.107877388596535,0.100572943687439,-0.083267532289028) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.018769431859255,-0.078594915568829,-0.103102035820484,-0.065566323697567,-0.000724455458112,-0.009997867979109,0.002515152562410,0.043228566646576,-0.008783551864326,-0.123395532369614,-0.141740456223488,0.048432134091854,-0.042870592325926,0.013298468664289,-0.119492046535015,-0.070566661655903) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.054522458463907,-0.076944135129452,0.014462118037045,0.069013766944408,0.044455740600824,-0.032930757850409,-0.058986037969589,0.004020866472274,-0.041775997728109,0.016198672354221,0.156204283237457,0.003713914426044,0.077262312173843,-0.111903540790081,0.071322008967400,0.013452281244099) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.011267837136984,-0.181159570813179,0.097254410386086,-0.022263035178185,-0.017000121995807,-0.156532064080238,-0.110685184597969,0.028188547119498,-0.150105640292168,-0.157160818576813,0.138784468173981,0.090110018849373,-0.031407605856657,0.069959729909897,0.082954801619053,-0.094168171286583) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.065455868840218,-0.005867152474821,0.175997644662857,-0.061950359493494,0.070803984999657,-0.008299836888909,0.119422778487206,-0.033416703343391,0.019233100116253,-0.249905839562416,-0.443949162960052,0.084800481796265,0.215157449245453,0.036864716559649,0.136125415563583,-0.049948554486036) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.490138083696365,-0.094482980668545,0.081339254975319,0.119328893721104,-0.077205233275890,0.062986060976982,-0.144077420234680,-0.011985150165856,-0.124358594417572,-0.078418560326099,0.291303932666779,-0.025057526305318,0.164945885539055,0.069063104689121,-0.055867712944746,0.039453890174627) * MODEL7_texOff(vec2(0,1));
res += mat4(0.033836793154478,-0.012369977310300,-0.011513199657202,0.013550362549722,-0.083443522453308,-0.033239446580410,-0.046169765293598,0.020642498508096,-0.027696883305907,0.039408244192600,-0.129993543028831,0.096060156822205,-0.044710762798786,0.162108063697815,0.212107256054878,-0.048770748078823) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.123823672533035,-0.406568050384521,-0.115701526403427,-0.001811374095269,-0.023637698963284,0.004472803324461,0.100410602986813,-0.029224138706923,0.141005098819733,0.026683883741498,-0.135783165693283,0.063912108540535,0.240321084856987,-0.147156715393066,-0.359145760536194,-0.002832043450326) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.576865255832672,-0.179809421300888,0.157195538282394,0.072113633155823,0.102910928428173,-0.011880413629115,-0.036827523261309,-0.061245538294315,0.022301830351353,0.073047123849392,0.029832452535629,-0.037071969360113,0.370880842208862,0.028044382110238,0.342554181814194,0.012059096246958) * MODEL7_texOff(vec2(1,1));
res += mat4(0.058777414262295,0.078124344348907,0.079668104648590,0.027339553460479,-0.060310699045658,0.042306959629059,0.041675612330437,0.024502303451300,-0.060841646045446,0.091814145445824,0.019426705315709,0.034501053392887,-0.052769184112549,0.014430399984121,-0.008697926998138,-0.083315223455429) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.082177668809891,0.043713524937630,-0.044516697525978,-0.031883876770735,-0.039264164865017,-0.064956739544868,0.289658516645432,0.051949888467789,0.013753667473793,0.069023951888084,0.074737526476383,0.053201962262392,-0.016694651916623,0.120387390255928,0.073549099266529,0.022700522094965) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.073318138718605,-0.037157315760851,0.097082421183586,-0.153152048587799,-0.164502486586571,-0.013976127840579,-0.001568890293129,0.035321433097124,0.156299605965614,0.086104363203049,0.066822223365307,0.015899918973446,0.000587692193221,0.018028808757663,-0.023084782063961,-0.029811248183250) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.057533632963896,-0.062853328883648,-0.031896810978651,0.051034759730101,-0.037601828575134,0.022393835708499,0.212540477514267,0.002534081460908,0.036223363131285,-0.059551693499088,-0.022129768505692,0.069934658706188,-0.247897937893867,-0.016932949423790,-0.080582104623318,0.186607137322426) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.031767010688782,-0.199624031782150,-0.051076762378216,-0.121404916048050,0.116803325712681,0.330168694257736,0.111872598528862,0.100306175649166,0.063108541071415,-0.111046746373177,-0.080807112157345,0.069232009351254,-0.051648288965225,-0.184586361050606,0.111898362636566,0.086256965994835) * MODEL8_texOff(vec2(0,0));
res += mat4(0.083395503461361,-0.033306501805782,0.136277467012405,-0.266239255666733,-0.337299644947052,-0.005037410650402,-0.074252001941204,0.105458058416843,0.044951237738132,-0.113277234137058,-0.095604635775089,0.051303427666426,0.187748789787292,0.108407028019428,0.089551270008087,-0.082257717847824) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.006993297021836,-0.067779026925564,0.016909383237362,0.044404871761799,-0.038665715605021,-0.221889451146126,0.066346190869808,0.071947641670704,0.128215476870537,0.175865903496742,0.089700907468796,0.008611497469246,-0.209825336933136,-0.014952840283513,-0.045180089771748,-0.083024486899376) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.026607189327478,0.019394645467401,-0.067387618124485,-0.037045653909445,-0.067239895462990,-0.162178859114647,0.117971062660217,0.106144979596138,-0.016355760395527,0.195302650332451,0.088281966745853,0.042479258030653,-0.047869835048914,0.136776298284531,-0.018959419801831,-0.096919618546963) * MODEL8_texOff(vec2(1,0));
res += mat4(0.195375874638557,-0.164209425449371,0.169371098279953,-0.171661987900734,-0.177145928144455,-0.074332512915134,0.050320375710726,0.024162966758013,-0.000732582353521,-0.115089967846870,0.031740989536047,0.001723282504827,0.181364104151726,0.009489005431533,-0.096132658421993,-0.140522390604019) * MODEL8_texOff(vec2(1,1));
res += mat4(0.001223087776452,0.071657001972198,0.029183479025960,0.025867497548461,-0.034595180302858,0.010503686964512,-0.042096171528101,0.013625958003104,-0.117645569145679,-0.013837074860930,0.041352961212397,0.084920540452003,-0.094106800854206,0.024543454870582,-0.032240111380816,0.055712446570396) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.055035375058651,-0.010910694487393,0.028311586007476,0.035081818699837,-0.042488761246204,-0.038376573473215,0.032731890678406,0.044985353946686,-0.014187933877110,-0.051953267306089,0.113904513418674,0.019244788214564,-0.085134677588940,0.024201624095440,0.091782025992870,0.045063741505146) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.029309088364244,0.121779963374138,-0.093462973833084,0.046831231564283,0.162253975868225,0.108618587255478,-0.124147146940231,0.016292309388518,0.032306615263224,0.002234274055809,0.049255862832069,-0.032121736556292,-0.088422693312168,0.031127901747823,-0.042101692408323,-0.015990713611245) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.048439763486385,0.071721822023392,-0.014158276841044,-0.021778712049127,-0.157805651426315,0.108738146722317,-0.138559967279434,-0.002238478744403,-0.113410949707031,0.054172746837139,0.040113992989063,0.069821372628212,-0.110181368887424,-0.001677101361565,-0.099839299917221,0.224883824586868) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.002349818591028,0.105020008981228,-0.022787336260080,0.134512275457382,0.066492147743702,-0.107309944927692,0.430628567934036,-0.086935825645924,-0.080984659492970,-0.095249593257904,-0.004046295769513,0.049644991755486,-0.074660219252110,0.188030779361725,0.545936286449432,-0.758268952369690) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.083660595118999,-0.308339238166809,0.101788751780987,0.074898570775986,0.083589293062687,0.003056626301259,-0.359094202518463,0.038567982614040,0.279416382312775,0.063379861414433,0.119415402412415,-0.037808805704117,-0.223708033561707,-0.122933231294155,-0.244691178202629,0.084626451134682) * MODEL9_texOff(vec2(0,1));
res += mat4(0.057171393185854,0.054445080459118,-0.105821043252945,-0.051562294363976,0.131226718425751,-0.040681220591068,-0.015782246366143,-0.006202206946909,0.017036862671375,0.018395960330963,0.024114824831486,-0.030103469267488,-0.085178419947624,0.055439200252295,0.011908861808479,0.203934714198112) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.030457507818937,0.259919494390488,0.119689062237740,-0.148405164480209,0.073307543992996,-0.018910467624664,0.057471152395010,-0.025074191391468,-0.009938655421138,-0.012248110957444,-0.063150115311146,0.016767097637057,-0.003200548468158,-0.279856383800507,0.160804226994514,0.330740422010422) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.029053328558803,0.439327806234360,0.261813431978226,-0.068177640438080,0.483777642250061,0.206593409180641,-0.268173515796661,0.016092617064714,0.074139989912510,-0.115985780954361,0.046850878745317,0.009300808422267,-0.264790982007980,-0.037899285554886,-0.057071551680565,0.158728897571564) * MODEL9_texOff(vec2(1,1));
res += mat4(0.052124578505754,0.005780205130577,-0.065062023699284,0.000713375979103,-0.062056504189968,-0.109616205096245,0.100383810698986,-0.050214100629091,0.015089030377567,0.118897721171379,0.071925938129425,-0.043958969414234,-0.155564591288567,-0.009336670860648,-0.043421979993582,0.018376495689154) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.090724132955074,-0.144573524594307,0.046388480812311,-0.029686203226447,-0.076987087726593,0.009134283289313,-0.041616838425398,-0.089359007775784,0.060129791498184,0.369386941194534,-0.025698766112328,-0.042753897607327,0.104570493102074,0.118270687758923,0.248304590582848,-0.024609340354800) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.131333440542221,-0.236664146184921,0.014602021314204,-0.008426913991570,-0.132482081651688,0.000676686002407,-0.052303854376078,0.007834944874048,0.000942927610595,0.181210607290268,-0.010165428742766,-0.063860647380352,-0.010196860879660,-0.046092659235001,-0.396626234054565,-0.049118191003799) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.019682651385665,0.132143765687943,0.048672724515200,-0.035255011171103,0.012008460238576,-0.051134049892426,0.012176980264485,-0.062695406377316,-0.025694873183966,0.207269594073296,0.151399046182632,0.011385117657483,-0.049054585397243,0.006356388330460,-0.026865122839808,0.059190500527620) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.074008889496326,-0.509636819362640,0.028609460219741,-0.097307331860065,-0.329134166240692,0.336153388023376,-0.182509899139404,-0.093517608940601,-0.176223888993263,-0.157651349902153,-0.474546223878860,-0.020463308319449,-0.006787762977183,-0.018521782010794,0.225717246532440,0.010402436368167) * MODEL10_texOff(vec2(0,0));
res += mat4(0.063932545483112,-0.153755098581314,0.063634127378464,-0.069924168288708,-0.029083484783769,-0.013529515825212,0.116588369011879,-0.079585507512093,0.264611303806305,0.068503059446812,-0.213959723711014,-0.033720597624779,0.204071193933487,0.073299504816532,-0.266772449016571,-0.027919255197048) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.037385109812021,-0.025623720139265,0.082133710384369,-0.026275023818016,0.072068184614182,0.188474044203758,0.149740055203438,-0.080661900341511,0.009863968938589,-0.046684730798006,-0.009249793365598,0.037796836346388,-0.022159541025758,0.071336358785629,-0.053815994411707,0.002904816763476) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.089604265987873,0.325097978115082,-0.027061395347118,-0.072664462029934,0.129927456378937,-0.455527096986771,0.062560006976128,-0.174191609025002,0.051697537302971,0.319053649902344,-0.064936637878418,0.042604856193066,-0.045328926295042,-0.100863002240658,-0.022598246112466,0.050034776329994) * MODEL10_texOff(vec2(1,0));
res += mat4(0.163860052824020,0.027522744610906,-0.011216789484024,-0.061307303607464,-0.002806270029396,-0.214325487613678,0.053362168371677,-0.068885415792465,0.148726120591164,0.198657110333443,0.002076602075249,0.023048790171742,-0.039014007896185,-0.003744996851310,-0.042455453425646,0.031082395464182) * MODEL10_texOff(vec2(1,1));
res += mat4(0.050390060991049,-0.005626728292555,0.016331816092134,-0.059577938169241,0.058029416948557,0.100416891276836,0.099921211600304,-0.022130874916911,-0.000972067704424,-0.111626565456390,-0.001257539144717,-0.060856528580189,-0.030019231140614,0.007906576618552,-0.067797161638737,0.008523558266461) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.068370088934898,-0.078181557357311,0.083253890275955,-0.059846837073565,-0.037499126046896,-0.072296783328056,-0.141492441296577,0.027897473424673,0.038824796676636,0.062923334538937,0.039892449975014,-0.071106903254986,-0.019616955891252,-0.017817413434386,-0.037532288581133,0.016273269429803) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.061757344752550,-0.039603844285011,0.100606821477413,-0.002403752179816,0.015789721161127,-0.087285965681076,-0.029775274917483,0.051409423351288,0.026347644627094,-0.088023982942104,-0.027687782421708,-0.048290438950062,-0.094243265688419,-0.011932381428778,-0.037701994180679,0.035044196993113) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.090022720396519,-0.032958548516035,-0.075282551348209,0.021575558930635,-0.121678657829762,0.076170161366463,-0.049514405429363,0.006451678462327,0.045522604137659,-0.025972720235586,0.055787734687328,-0.100244507193565,0.116644255816936,-0.004762331955135,0.138331666588783,-0.112277984619141) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.161501944065094,0.130962401628494,-0.005494021810591,-0.044821500778198,0.073898404836655,-0.097651518881321,-0.091377161443233,0.005291693843901,0.062177322804928,0.066969476640224,-0.025915831327438,-0.171204537153244,0.073113836348057,-0.077666170895100,0.135449558496475,0.046382050961256) * MODEL11_texOff(vec2(0,0));
res += mat4(-1.476552009582520,-0.001353872357868,-0.069727316498756,0.139358982443810,0.087420202791691,0.009012511931360,0.124184049665928,-0.038635279983282,0.040020287036896,0.020774303004146,-0.055025521665812,-0.043776549398899,-0.322768837213516,-0.024991473183036,0.020388802513480,-0.012280734255910) * MODEL11_texOff(vec2(0,1));
res += mat4(0.044611319899559,0.147237539291382,0.075617380440235,-0.005496559664607,-0.161614328622818,-0.010365816764534,-0.065250068902969,0.003007844556123,0.036345049738884,-0.177916303277016,-0.000457358255517,-0.027251677587628,0.078846983611584,-0.116031840443611,0.023346994072199,-0.071292810142040) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.085110820829868,-0.170647487044334,-0.071892872452736,0.042030539363623,-0.018542123958468,0.095829546451569,0.054372448474169,-0.057104066014290,-0.065944276750088,0.147231101989746,-0.151785284280777,-0.045908123254776,-0.057617519050837,-0.051175411790609,0.090893000364304,0.000982153578661) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.296405285596848,0.061649095267057,0.085164383053780,0.064967736601830,0.079439774155617,0.004601284395903,-0.059176381677389,-0.031462267041206,0.127527728676796,-0.156454488635063,0.058493301272392,-0.015073891729116,-0.247203946113586,0.016790583729744,0.023919701576233,0.119660317897797) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.050424978137016,0.232658013701439,0.070188201963902,0.042552646249533,0.077552914619446,0.059367824345827,0.035855490714312,-0.085947267711163,-0.081283502280712,0.007398006040603,0.131695762276649,0.099992260336876,-0.006096474826336,0.045442625880241,-0.174949496984482,0.000162403259310) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.035293534398079,0.135506689548492,0.068190194666386,0.053814765065908,-0.040808089077473,0.191485196352005,-0.114018030464649,-0.074262902140617,0.193396374583244,-0.258389621973038,-0.189877107739449,0.215519532561302,0.013909208588302,-0.054367151111364,-0.025157850235701,0.023628212511539) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.009304019622505,0.156824603676796,-0.015777632594109,-0.022776860743761,0.008307164534926,-0.017970249056816,-0.265353262424469,-0.008077803999186,-0.145410284399986,-0.061680205166340,-0.113285854458809,0.128517806529999,0.179295301437378,-0.057768337428570,0.287636339664459,0.009596257470548) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.003114003222436,-0.011051122099161,0.059448037296534,0.033639471977949,-0.100595079362392,-0.170785769820213,0.000056504992244,-0.008258602581918,-0.040369190275669,-0.052096329629421,0.054550949484110,0.023994067683816,0.058753024786711,0.015928285196424,-0.119945198297501,-0.065159179270267) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.040202300995588,0.078854240477085,-0.117284320294857,-0.007507778704166,0.048601131886244,0.010954536497593,0.002852288307622,-0.003296400886029,0.075158581137657,0.102719247341156,-0.184833616018295,0.099143326282501,0.113919034600258,0.073618277907372,0.001731797237881,-0.126693248748779) * MODEL12_texOff(vec2(0,0));
res += mat4(0.097895376384258,0.184500291943550,-0.012189343571663,-0.020019657909870,0.116826035082340,0.043246600776911,-0.030526122078300,-0.004952561110258,-0.106157675385475,-0.055834058672190,0.179672494530678,0.065049014985561,0.089037038385868,-0.013068899512291,-0.187079682946205,-0.073364809155464) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.050253544002771,0.160599932074547,-0.035689838230610,-0.010108662769198,0.088674031198025,0.061193257570267,-0.066655538976192,0.070694051682949,-0.058320820331573,0.075867906212807,0.013161507435143,-0.048192217946053,0.035829856991768,-0.024036509916186,0.002306475071236,-0.048983108252287) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.045693933963776,0.196564435958862,-0.097772441804409,0.042654652148485,-0.047299291938543,-0.176302313804626,-0.090038314461708,0.104332737624645,0.056953851133585,0.082031480967999,0.038612112402916,-0.155948355793953,0.072909727692604,-0.038156136870384,0.062137167900801,-0.143499359488487) * MODEL12_texOff(vec2(1,0));
res += mat4(0.138205945491791,0.170343935489655,-0.062711477279663,0.018896263092756,0.078140035271645,0.066529519855976,-0.076470553874969,0.004798741545528,0.037379704415798,0.044102281332016,0.019602281972766,-0.061345297843218,0.328746497631073,0.099018029868603,-0.085555896162987,-0.110198006033897) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.052573628723621,-0.004326387774199,-0.076675392687321,0.962481737136841) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_3x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.064417876303196,0.062579467892647,-0.109753690660000,0.022400373592973);
res += mat4(-0.354820877313614,-0.028209509328008,-0.084083490073681,-0.051965449005365,-0.045399937778711,-0.212754771113396,0.120756939053535,-0.046675816178322,0.015974411740899,-0.026788473129272,-0.135214984416962,-0.014577756635845,-0.204415500164032,0.161726444959641,0.376622021198273,-0.051215052604675) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.026198277249932,0.133720785379410,0.013416933827102,-0.273116022348404,0.043307449668646,-0.369902938604355,0.128037646412849,0.026560191065073,-0.091690979897976,-0.167648524045944,-0.087502703070641,-0.011818761005998,0.015853496268392,0.336813718080521,-0.028750346973538,-0.100052714347839) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.055649809539318,0.063918150961399,0.097975194454193,-0.160685315728188,-0.044567544013262,-0.590421378612518,0.010858499445021,0.123999767005444,0.014426023699343,-0.175846427679062,0.055898658931255,0.054502651095390,0.104592382907867,0.374548375606537,0.110451601445675,0.017124157398939) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.099906846880913,0.161770910024643,0.067961163818836,-0.122266359627247,-0.065259762108326,-0.603417098522186,0.025889893993735,0.000426289450843,-0.329390764236450,0.044142514467239,-0.040257722139359,0.073197320103645,-0.491185218095779,0.079037703573704,0.528076410293579,-0.061477530747652) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.181639745831490,0.171755343675613,-0.241103321313858,-0.004362647887319,0.182534798979759,-0.465720325708389,0.057167127728462,-0.080310024321079,0.110691785812378,-0.261883318424225,0.193861275911331,-0.518860101699829,0.061586342751980,0.167111843824387,0.118313021957874,-0.293994396924973) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.142280101776123,0.061611052602530,0.096944123506546,0.217558681964874,0.024745361879468,-0.388076156377792,-0.023661347106099,0.155751973390579,0.069066263735294,-0.141383364796638,-0.098294846713543,0.178741753101349,0.000047746780183,0.270106792449951,0.027151597663760,-0.157611384987831) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.066965930163860,0.134264349937439,0.204237282276154,-0.129093229770660,-0.091116875410080,-0.361466974020004,0.054570969194174,0.073160000145435,-0.208827063441277,-0.200909763574600,-0.016945630311966,0.085134647786617,-0.336622297763824,0.262256085872650,0.419129818677902,0.207707762718201) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.096343845129013,-0.084117874503136,0.094486691057682,-0.155414760112762,-0.072285741567612,-0.843725383281708,0.149888232350349,0.035680767148733,0.127316892147064,-0.131567373871803,0.014500493183732,-0.128920048475266,-0.039716560393572,0.145765975117683,-0.050693366676569,0.037605378776789) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.108962692320347,-0.007067683152854,0.058462299406528,-0.008771565742791,0.074182204902172,-0.276294291019440,-0.017159475013614,-0.050706531852484,-0.036223880946636,0.027051400393248,-0.061728943139315,0.159998849034309,0.019673991948366,0.146662697196007,0.091680482029915,-0.022516900673509) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.039561960846186,-0.183838620781898,0.016221638768911,0.053613316267729,0.077561534941196,0.300637364387512,-0.025189530104399,0.069080121815205,0.075903788208961,0.142938762903214,0.027498085051775,0.087563365697861,0.085106782615185,-0.114867940545082,0.074838973581791,-0.115662872791290) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.088519200682640,0.150770217180252,-0.084304966032505,0.079149827361107,0.308376878499985,-0.010241405107081,-0.371283143758774,0.248847216367722,-0.084931738674641,-0.125218480825424,0.095476239919662,0.132143974304199,-0.050288993865252,-0.081349432468414,-0.156259045004845,-0.082507759332657) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.202577024698257,-0.080482989549637,0.120445504784584,0.049100119620562,-0.096926689147949,0.108879968523979,0.042136255651712,0.166753917932510,0.041169922798872,0.020893475040793,0.047545522451401,-0.072084262967110,-0.002885709051043,0.069258920848370,0.261019527912140,0.059039887040854) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.030731420964003,-0.017584372311831,-0.042192541062832,0.175784796476364,0.109120763838291,0.388531565666199,-0.189112707972527,0.070241607725620,0.028366604819894,-0.088865436613560,0.018039785325527,0.241877406835556,-0.180173426866531,-0.073358833789825,-0.061712659895420,0.226292148232460) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.095911994576454,-0.116049841046333,-0.054474305361509,0.153378859162331,0.333351314067841,0.005473677534610,0.201537653803825,0.390276849269867,-0.019860316067934,-0.106752298772335,0.126755401492119,0.078605085611343,-0.163062170147896,-0.155571296811104,0.165955349802971,0.035810079425573) * MODEL8_texOff(vec2(0,0));
res += mat4(0.087538786232471,0.074531637132168,0.073731690645218,-0.038006786257029,-0.104855231940746,0.100008912384510,0.035080812871456,0.166682064533234,0.043467007577419,0.157378464937210,-0.017761589959264,0.001770211150870,0.040781158953905,-0.013510460034013,0.182660803198814,-0.271246850490570) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.188763037323952,-0.064654350280762,-0.136288583278656,-0.072194792330265,0.053130198270082,0.224134936928749,0.058253642171621,-0.111867733299732,-0.092069946229458,0.035477936267853,-0.016949705779552,0.007295362185687,-0.165160670876503,-0.203350216150284,-0.037678867578506,0.008160430938005) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.062335308641195,0.059989459812641,0.064855419099331,-0.107465788722038,0.014544004574418,0.011370155960321,0.018829056993127,-0.033806897699833,0.184589073061943,-0.089060142636299,0.007171437609941,-0.131963431835175,-0.094903402030468,0.105359591543674,0.020239748060703,0.148205131292343) * MODEL8_texOff(vec2(1,0));
res += mat4(0.166866451501846,0.018613737076521,0.003392907558009,0.081215225160122,0.013299399055541,0.171695426106453,0.072111144661903,-0.147946998476982,-0.075922757387161,0.077732339501381,0.045595671981573,-0.170469656586647,-0.007648238912225,-0.020502852275968,-0.152076125144958,0.024101132526994) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.026302881538868,0.182865694165230,-0.034761298447847,0.017618518322706,0.058638568967581,0.026756338775158,0.249903649091721,-0.099100537598133,-0.065817497670650,-0.203771024942398,0.268879771232605,-0.074526183307171,-0.117682568728924,-0.025635560974479,-0.116329215466976,0.012400932610035) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.011406008154154,0.039048071950674,0.146647214889526,-0.056933507323265,-0.055762287229300,-0.043775908648968,0.046899430453777,0.077667623758316,-0.088981650769711,-0.057403687387705,0.101712860167027,0.060240246355534,0.079273149371147,0.064708910882473,0.278018593788147,0.063041128218174) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.037344060838223,-0.017830628901720,0.114580124616623,0.134832933545113,0.164637103676796,0.015568067319691,0.021045872941613,0.123680733144283,0.076082304120064,-0.237588286399841,0.025140278041363,0.060460627079010,-0.044397234916687,-0.068757802248001,-0.102993413805962,0.124943293631077) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.025565076619387,-0.139614865183830,0.130586698651314,0.029526842758060,-0.268697172403336,-0.424806863069534,-0.378029674291611,0.180812165141106,0.012674874626100,-0.338750302791595,-0.146192580461502,0.051700092852116,-0.269812345504761,-0.210979640483856,-0.306435108184814,0.097321756184101) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.207117587327957,0.066903755068779,-0.246658399701118,0.092027820646763,0.063779816031456,-0.201389506459236,-0.092326231300831,-0.035359647125006,-0.096069127321243,0.248181775212288,0.158545926213264,-0.213911458849907,0.270882755517960,0.082394629716873,0.076917082071304,-0.286667019128799) * MODEL9_texOff(vec2(0,0));
res += mat4(0.005612686276436,-0.201822578907013,-0.012701680883765,0.005080127622932,-0.079242721199989,-0.114806160330772,0.086130775511265,-0.299057126045227,0.202533334493637,-0.244119822978973,-0.044483695179224,0.160690248012543,-0.119506008923054,0.072096213698387,-0.106198005378246,0.101163856685162) * MODEL9_texOff(vec2(0,1));
res += mat4(0.005157333798707,-0.422529667615891,-0.065737515687943,0.145200207829475,-0.050939790904522,0.117555812001228,0.072319559752941,0.086226142942905,0.165557742118835,-0.150331407785416,0.097259104251862,0.033156253397465,-0.025334959849715,-0.101661838591099,-0.174746528267860,0.078780487179756) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.288607984781265,0.160192519426346,0.022009288892150,0.022392487153411,-0.054152313619852,-0.142679914832115,0.123953863978386,0.051647070795298,0.062215290963650,0.042955141514540,-0.021437926217914,0.105820991098881,0.105701915919781,-0.098765462636948,-0.242710471153259,0.002231528284028) * MODEL9_texOff(vec2(1,0));
res += mat4(0.074619837105274,-0.018282193690538,0.037894472479820,0.108163468539715,0.170591384172440,0.011261123232543,-0.060874588787556,-0.062437061220407,0.142989709973335,-0.162935987114906,0.003215583041310,-0.001960664056242,-0.116253823041916,0.019956151023507,-0.074346259236336,0.018249472603202) * MODEL9_texOff(vec2(1,1));
res += mat4(0.161185443401337,0.268561452627182,-0.137965574860573,-0.093765430152416,-0.053635798394680,0.078038476407528,0.001233839662746,0.071869499981403,0.062673196196556,-0.045113191008568,-0.069258578121662,0.185012936592102,-0.099600963294506,-0.049051892012358,0.064472489058971,-0.015927696600556) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.032928645610809,0.233956336975098,0.166700020432472,-0.059308551251888,-0.000725651509129,0.004897019360214,-0.159682422876358,-0.135857120156288,0.021281687542796,-0.041510254144669,-0.152156665921211,0.027590690180659,-0.259680867195129,0.015647595748305,0.369453549385071,-0.164917811751366) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.063111416995525,0.328148841857910,0.088229872286320,-0.300306528806686,-0.062102340161800,-0.033638142049313,0.093432031571865,-0.056164365261793,-0.016071839258075,0.048616703599691,-0.127072766423225,-0.145576298236847,0.173012137413025,-0.027701858431101,0.102722406387329,-0.290190786123276) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.061880607157946,0.102573730051517,0.090770602226257,0.026463350281119,0.127119094133377,0.254721939563751,0.259216010570526,0.037288952618837,-0.084253869950771,0.068690314888954,-0.075217157602310,0.031333833932877,-0.120041258633137,0.016438685357571,0.003891886211932,0.029992612078786) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.094116240739822,-0.021072566509247,0.188550412654877,-0.081806018948555,-0.273005217313766,0.015045368112624,0.153719395399094,-0.121618129312992,-0.334420084953308,0.267005980014801,0.093804046511650,0.119516894221306,-0.228515431284904,0.055705852806568,0.025688838213682,-0.065084643661976) * MODEL10_texOff(vec2(0,0));
res += mat4(0.151745215058327,0.300985932350159,0.107246197760105,-0.097316443920135,0.163373053073883,-0.034953650087118,0.350666791200638,0.246744766831398,0.185697183012962,0.044942375272512,-0.285538375377655,-0.395006537437439,0.118730962276459,-0.022378219291568,-0.006645949091762,-0.110197119414806) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.065554976463318,0.141584187746048,0.152197569608688,-0.011851230636239,-0.120554462075233,-0.150583997368813,0.139917075634003,0.035691015422344,0.000839386077132,0.016062840819359,-0.070151530206203,0.007472244556993,-0.079015776515007,-0.008537669666111,-0.093998894095421,0.049453712999821) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.088326781988144,0.170063778758049,0.111064791679382,0.073578834533691,0.105260170996189,-0.042680550366640,0.226165190339088,-0.101614385843277,-0.139865279197693,0.084295570850372,-0.181379422545433,0.156637221574783,-0.042165193706751,-0.051517121493816,-0.067625820636749,-0.026092099025846) * MODEL10_texOff(vec2(1,0));
res += mat4(0.073604300618172,0.127246901392937,0.099459014832973,-0.062453843653202,0.064516879618168,-0.015255775302649,-0.041513726115227,0.096008814871311,0.045947242528200,0.068375743925571,-0.034352038055658,0.198393315076828,-0.017696140334010,0.007185611408204,0.008786726742983,0.012119091115892) * MODEL10_texOff(vec2(1,1));
res += mat4(0.057236276566982,-0.042574219405651,-0.023251349106431,-0.129967659711838,-0.001332066603936,0.159977912902832,0.084878683090210,-0.167982593178749,-0.021409811452031,-0.002296968596056,0.007102641277015,0.103736177086830,-0.109390534460545,0.097965352237225,-0.119327135384083,0.091068848967552) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.151990771293640,-0.059804506599903,-0.127277210354805,-0.041450746357441,0.074355393648148,0.204418778419495,-0.091252088546753,-0.052341502159834,-0.006916479673237,0.012636912986636,-0.018962875008583,0.054741524159908,-0.172845795750618,0.135182633996010,-0.440404713153839,0.016695138067007) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.040213003754616,-0.113011792302132,-0.254582613706589,0.092399694025517,-0.171583041548729,0.166609123349190,0.104735583066940,0.026217292994261,-0.056812066584826,-0.090434752404690,0.012821337208152,0.021390788257122,-0.071495085954666,0.189287990331650,-0.023755077272654,-0.105546765029430) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.162941455841064,-0.152293264865875,-0.027079461142421,0.107520736753941,0.068808257579803,0.072120800614357,-0.100238546729088,-0.093015991151333,-0.245321050286293,0.181963235139847,0.015029156580567,-0.129760622978210,0.355448693037033,0.190109685063362,-0.148936584591866,-0.192517727613449) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.264888077974319,0.001276267343201,0.017096599563956,-0.153981581330299,-0.169955104589462,-0.066060066223145,-0.054389704018831,-0.085119172930717,0.418600261211395,0.244632840156555,-0.103194415569305,-0.014981749467552,-0.381431430578232,0.088221438229084,-1.045594930648804,0.191819638013840) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.313096314668655,-0.174557551741600,-0.362542986869812,0.204278051853180,0.211578413844109,-0.046432755887508,0.138339534401894,-0.177603542804718,-0.105653181672096,0.189891293644905,-0.028741829097271,0.152318775653839,-0.089215375483036,0.013824563473463,0.240899533033371,-0.084597937762737) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.188451573252678,-0.020096674561501,0.079044468700886,0.079768739640713,-0.094436891376972,0.143726378679276,-0.052662502974272,-0.092022880911827,-0.023850267753005,0.011748006567359,0.049903806298971,-0.088607043027878,0.150797054171562,0.132781594991684,-0.014364735223353,-0.043060585856438) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.039357550442219,-0.154213905334473,0.074232086539268,0.078152395784855,-0.204350814223289,0.323720633983612,-0.000457463320345,-0.100096486508846,0.046923369169235,-0.186121761798859,0.116042561829090,-0.009770611301064,0.007572729606181,-0.156647369265556,-0.143595263361931,-0.035477649420500) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.033971358090639,0.013573170639575,-0.019092204049230,-0.199099808931351,0.091365985572338,0.071788653731346,-0.041564419865608,0.115327306091785,0.026300104334950,0.147424578666687,-0.100230388343334,-0.208947479724884,-0.028121983632445,0.043959096074104,-0.054734837263823,-0.104733251035213) * MODEL11_texOff(vec2(1,1));
res += mat4(0.098104812204838,0.043392080813646,-0.093961425125599,-0.030760001391172,-0.319135367870331,-0.014744318090379,-0.050036333501339,-0.110465750098228,-0.250851541757584,0.060009513050318,0.152281686663628,0.138812527060509,-0.008945030160248,-0.015779124572873,-0.020560156553984,0.227126687765121) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.042400293052197,0.037962954491377,-0.132875338196754,0.103300496935844,0.202738717198372,0.007137557491660,-0.052113570272923,-0.188900470733643,0.067135967314243,0.050947375595570,0.363899111747742,-0.308924049139023,-0.132835313677788,-0.048151895403862,0.007182080764323,0.105966925621033) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.085631422698498,-0.189652457833290,-0.297584474086761,-0.031133059412241,-0.123263210058212,0.055152408778667,0.012905417010188,-0.096362210810184,0.040786534547806,0.006143684033304,0.023381788283587,-0.415025174617767,0.031787391752005,-0.229258805513382,0.024208044633269,0.034923855215311) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.075654983520508,-0.092189177870750,-0.074756346642971,-0.065348610281944,-0.175612986087799,0.062197681516409,0.248553812503815,0.018693611025810,0.078437492251396,0.023108026012778,0.056533284485340,0.008529205806553,0.100786879658699,-0.107142359018326,-0.066658526659012,0.110810130834579) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.191083654761314,0.022284664213657,-0.000418602256104,-0.073169447481632,0.097086787223816,-0.147091776132584,0.003662538481876,0.062669605016708,0.109555989503860,-0.074089683592319,-0.364497333765030,0.025365833193064,0.234527707099915,-0.164139419794083,-0.023152558133006,0.139787599444389) * MODEL12_texOff(vec2(0,0));
res += mat4(0.055130168795586,-0.062437120825052,-0.153361886739731,0.153039291501045,-0.055565044283867,-0.021444128826261,-0.054029125720263,-0.064450711011887,-0.134403735399246,-0.009038235992193,-0.179199978709221,0.021500263363123,-0.093306094408035,-0.183976411819458,-0.151210620999336,-0.035450894385576) * MODEL12_texOff(vec2(0,1));
res += mat4(0.106554687023163,-0.069707728922367,0.000092161717475,0.030159257352352,-0.027822311967611,-0.096778467297554,-0.095689788460732,0.011833189055324,0.094182528555393,-0.101501025259495,-0.074259847402573,-0.002562687499449,-0.088150985538960,0.117220573127270,-0.006774449255317,0.027636276558042) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.177659884095192,-0.136736124753952,-0.004493589513004,0.148027390241623,-0.137657612562180,-0.140472382307053,-0.138418689370155,-0.100402377545834,0.023199921473861,0.090930804610252,0.186697587370872,-0.021570673212409,0.070242710411549,0.074636787176132,0.104119479656219,0.015733314678073) * MODEL12_texOff(vec2(1,0));
res += mat4(0.049767330288887,-0.143827900290489,-0.083886936306953,0.049502033740282,0.071524597704411,0.013256993144751,-0.015080860815942,-0.155223354697227,0.070830225944519,0.072164654731750,-0.153875663876534,-0.002662195591256,0.110367201268673,-0.183153003454208,-0.008082416839898,0.190895140171051) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.074517413973808,-0.032457672059536,0.016557930037379,-0.145353108644485) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_3x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(-0.049544360488653,0.068681493401527,-0.032722584903240,0.011942171491683);
res += mat4(0.189253091812134,-0.133882656693459,0.128246113657951,-0.024020250886679,-0.233551308512688,0.025715362280607,0.133702322840691,0.018547039479017,-0.183457985520363,0.032620184123516,0.160887435078621,0.290205270051956,0.017563005909324,-0.161233127117157,0.199428305029869,-0.039088193327188) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.124361179769039,0.056784894317389,0.014924474060535,-0.088094621896744,-0.106059245765209,-0.194658249616623,0.058837063610554,0.069564878940582,0.031336527317762,0.016701795160770,-0.084082037210464,0.107370398938656,0.066177658736706,-0.075402140617371,0.067137531936169,0.008533128537238) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.109339177608490,-0.035837329924107,0.039712611585855,0.035881016403437,-0.170635074377060,-0.115046210587025,0.039777230471373,0.057273723185062,0.009947591461241,0.040143281221390,0.078569993376732,0.082777962088585,-0.193310573697090,-0.016782067716122,0.074944764375687,-0.003319820621982) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.216526284813881,-0.014279046095908,-0.542093038558960,-0.149820268154144,-0.161196544766426,0.023777576163411,-0.073601692914963,-0.048963777720928,-0.016480453312397,0.030363040044904,0.393266141414642,0.062046270817518,0.039589975029230,-0.066797338426113,0.097211636602879,0.165877342224121) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.024671737104654,0.066084198653698,-0.343938618898392,-0.002664265222847,-0.132186055183411,0.077045775949955,0.174074575304985,-0.017372712492943,-0.123716421425343,-0.132792577147484,0.114015080034733,0.032957963645458,-0.237981140613556,0.164599180221558,-0.119131766259670,0.032043769955635) * MODEL7_texOff(vec2(0,0));
res += mat4(0.078964784741402,-0.066191487014294,-0.151985168457031,0.030853988602757,0.057131085544825,-0.267457455396652,0.128623202443123,0.065208978950977,-0.067961595952511,-0.077612057328224,0.097411200404167,-0.088004514575005,-0.277489542961121,-0.019587021321058,0.020812263712287,0.008998018689454) * MODEL7_texOff(vec2(0,1));
res += mat4(0.101714789867401,0.072399578988552,-0.156187921762466,0.029123116284609,0.085652433335781,-0.161736711859703,-0.019357480108738,-0.034901905804873,-0.106768257915974,-0.033192314207554,0.083032317459583,-0.068677969276905,0.021662369370461,0.000709505518898,0.127684906125069,0.001092096325010) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.103215068578720,0.062868811190128,-0.194697916507721,-0.038543511182070,-0.397474706172943,-0.012997225858271,0.128442361950874,0.138481214642525,-0.147969141602516,-0.207376986742020,-0.014569938182831,0.036189686506987,-0.053429070860147,-0.095782265067101,0.182910457253456,-0.118364050984383) * MODEL7_texOff(vec2(1,0));
res += mat4(0.171173885464668,0.016935158520937,-0.141038849949837,0.071743667125702,0.072453655302525,-0.252165615558624,0.107393577694893,-0.062790952622890,-0.168202742934227,0.006155697628856,0.065327540040016,-0.064867004752159,0.102210409939289,-0.073989756405354,-0.064175471663475,-0.075440764427185) * MODEL7_texOff(vec2(1,1));
res += mat4(0.194175899028778,0.135526105761528,-0.000242517839069,-0.085085727274418,0.096251696348190,0.048501800745726,0.031964402645826,-0.098477378487587,-0.036136653274298,-0.067660138010979,-0.148565411567688,-0.026014355942607,-0.037664797157049,0.039758548140526,0.036781650036573,-0.113574050366879) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.017174197360873,-0.070702761411667,-0.133567467331886,-0.015116279013455,0.327803552150726,-0.026359390467405,-0.208995595574379,-0.119277454912663,0.073978155851364,-0.216567918658257,-0.195883378386497,0.199853807687759,0.065079897642136,0.004793644417077,-0.088989168405533,-0.224941268563271) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.299491912126541,0.177392706274986,-0.058179941028357,-0.063242092728615,0.145592838525772,-0.091310709714890,0.078371189534664,0.006087775807828,0.252489507198334,-0.005495299119502,-0.005591058172286,0.035976525396109,0.348041176795959,-0.213596060872078,-0.017876945436001,-0.064379841089249) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.155508816242218,0.004254622850567,-0.263403326272964,0.046597927808762,0.066107526421547,0.071634747087955,0.092081919312477,-0.136297240853310,0.263223171234131,-0.033962164074183,-0.063566677272320,-0.130002498626709,0.134960353374481,-0.169984340667725,0.064125604927540,0.037505969405174) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.160141289234161,0.084597699344158,0.116415731608868,-0.186269149184227,0.017876598984003,-0.299225360155106,-0.177756771445274,0.080222897231579,-0.250512421131134,0.050235155969858,0.053947445005178,-0.847070455551147,-0.153462782502174,-0.096972957253456,-0.041015867143869,-0.066463902592659) * MODEL8_texOff(vec2(0,0));
res += mat4(0.212829649448395,-0.233211293816566,-0.022974209859967,0.082230910658836,0.073981508612633,-0.302959710359573,0.005145920906216,0.212674900889397,0.083187267184258,-0.286745756864548,-0.034297868609428,-0.014777247793972,0.145890757441521,-0.018349647521973,0.067823104560375,-0.024805536493659) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.045464787632227,0.019657857716084,0.076507486402988,0.082738332450390,0.157108411192894,0.231853231787682,-0.013631528243423,0.238059237599373,0.228215560317039,-0.017156641930342,0.064004383981228,0.033557612448931,0.033950895071030,-0.358938246965408,-0.172794088721275,0.027034122496843) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.057645771652460,0.221671417355537,-0.032903105020523,0.145507574081421,0.154894620180130,-0.002840755041689,-0.065059781074524,0.071045234799385,0.041211035102606,0.104019947350025,-0.116700626909733,-0.155135393142700,-0.081600196659565,-0.132364645600319,0.095979951322079,0.042802434414625) * MODEL8_texOff(vec2(1,0));
res += mat4(0.157639130949974,-0.167796283960342,-0.144298434257507,0.011813633143902,0.295976221561432,-0.127397507429123,0.037311572581530,0.009999059140682,0.200336903333664,-0.115758150815964,-0.252997219562531,0.101198628544807,-0.039679579436779,0.099941112101078,0.137246698141098,0.088415652513504) * MODEL8_texOff(vec2(1,1));
res += mat4(0.068094082176685,0.043243665248156,-0.080051653087139,0.009488969109952,-0.041581500321627,0.038479112088680,-0.012104913592339,-0.000491931859870,-0.371315032243729,0.094928368926048,0.156486049294472,0.514032661914825,-0.039392635226250,-0.055836562067270,0.014716934412718,0.006292121484876) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.030090257525444,-0.328804343938828,-0.010165943764150,-0.079396151006222,0.111936487257481,-0.079446472227573,-0.180592089891434,0.188777878880501,-0.013854408636689,-0.194150999188423,0.231223195791245,0.379164814949036,0.004405428655446,-0.117359302937984,-0.045649185776711,0.173276424407959) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.458114713430405,0.222964629530907,0.032430917024612,0.040063027292490,-0.227819383144379,0.170930624008179,0.062580086290836,0.013452717103064,-0.006876426748931,0.186118081212044,0.166957482695580,0.182462573051453,-0.061143353581429,0.117451027035713,0.012991463765502,-0.003709821263328) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.075382791459560,0.077147744596004,-0.002270695287734,0.041760765016079,-0.078346632421017,0.062814861536026,0.079213209450245,0.117449268698692,0.186999350786209,-0.110794924199581,0.130189001560211,0.153864637017250,0.160400897264481,0.031931713223457,-0.104325935244560,-0.051711767911911) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.169779136776924,-0.171312093734741,-0.047645416110754,-0.096063137054443,0.221433445811272,0.075351811945438,0.072945237159729,-0.139250218868256,0.161328986287117,0.097214207053185,0.363166779279709,0.154978156089783,-0.013472257182002,0.121891513466835,0.170108169317245,-0.415846735239029) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.159425944089890,0.170935899019241,0.048866190016270,0.110507294535637,-0.303311735391617,0.169466570019722,0.113760232925415,0.079153820872307,0.003591461805627,0.414808392524719,0.112698994576931,-0.146098688244820,-0.088126741349697,-0.103626452386379,0.089303970336914,-0.032802991569042) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.063563875854015,0.040682826191187,0.027143321931362,-0.024478802457452,-0.102989189326763,-0.015582092106342,-0.074986994266510,-0.037378970533609,0.012601329013705,-0.131829574704170,0.159262940287590,0.000193837011466,0.378943234682083,-0.016782319173217,-0.016096163541079,0.004498329944909) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.262977927923203,-0.025386596098542,-0.188845276832581,-0.062129914760590,-0.194139853119850,0.082265324890614,-0.058963339775801,-0.130265250802040,-0.070821501314640,-0.247787699103355,0.237315773963928,0.044826656579971,-0.113856516778469,0.086296021938324,-0.061241172254086,-0.020286180078983) * MODEL9_texOff(vec2(1,0));
res += mat4(0.102058239281178,-0.329312801361084,-0.093658171594143,-0.102417454123497,-0.076212979853153,-0.005175214260817,0.133631899952888,-0.102893330156803,-0.041237954050303,-0.045024227350950,0.119748242199421,0.071499809622765,-0.097466692328453,-0.183347523212433,-0.140561699867249,-0.052897837013006) * MODEL9_texOff(vec2(1,1));
res += mat4(0.287682205438614,-0.149953231215477,-0.054245475679636,0.216313928365707,0.070323653519154,-0.003829337889329,0.181824848055840,-0.016329487785697,0.185251519083977,-0.086501292884350,-0.012294958345592,-0.094253644347191,-0.080199338495731,-0.109866932034492,-0.013526048511267,0.045643914490938) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.127144649624825,0.001497165882029,0.092210017144680,0.147774755954742,-0.251896381378174,0.072393022477627,0.128442198038101,-0.140176534652710,-0.132214322686195,0.245388701558113,-0.024985264986753,-0.186734393239021,-0.139140769839287,-0.158848628401756,0.104328416287899,0.273630619049072) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.126079618930817,0.250281751155853,-0.007865057326853,-0.009174204431474,0.121962927281857,-0.034034900367260,-0.070376597344875,0.002100104000419,0.056958418339491,0.131378501653671,-0.007538933306932,-0.031035823747516,-0.022331653162837,-0.003819929435849,0.019966781139374,0.021631509065628) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.223230391740799,-0.178395807743073,0.007356802001595,0.206306248903275,-0.098515287041664,0.096239708364010,0.192292749881744,0.132976368069649,-0.153091549873352,-0.024547319859266,-0.246563956141472,0.043668150901794,0.198360890150070,-0.105629645287991,0.024070706218481,0.017199276015162) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.107554689049721,-0.079589448869228,0.301702111959457,0.227911561727524,0.018288118764758,-0.100990064442158,-0.052987374365330,-0.067698851227760,-0.412071406841278,0.037043493241072,0.517991542816162,0.388212054967880,0.021774336695671,-0.040158290416002,0.145236819982529,-0.002471077023074) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.148683130741119,0.474607050418854,0.019124425947666,-0.082782573997974,0.102356187999249,-0.193444862961769,0.001942272763699,0.070524200797081,0.119364574551582,0.178864464163780,-0.025315554812551,-0.039361327886581,-0.037502296268940,0.107968971133232,0.079523488879204,-0.094037763774395) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.149176418781281,0.042289614677429,-0.018635550513864,0.059852901846170,0.062184173613787,-0.000819607230369,0.010766699910164,-0.018934538587928,0.013103832490742,0.185747563838959,0.038976255804300,0.062161393463612,-0.012904587201774,-0.071431644260883,-0.039093900471926,-0.017209723591805) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.222149148583412,-0.169640436768532,0.183451727032661,-0.009660407900810,-0.127322211861610,-0.112809002399445,0.116912998259068,0.185034349560738,-0.055723730474710,-0.174865603446960,0.084102936089039,-0.061629779636860,-0.096322685480118,0.032373696565628,-0.004510824568570,0.022009538486600) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.173763453960419,0.393972039222717,-0.015045769512653,-0.014839925803244,-0.092031188309193,-0.045036070048809,0.089796237647533,-0.020978013053536,-0.199611514806747,0.054803267121315,0.042261481285095,-0.038029551506042,-0.009832458570600,-0.143437087535858,-0.020214114338160,-0.029794428497553) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.163922443985939,0.085278645157814,-0.044050194323063,0.001112473779358,-0.113613404333591,0.095650464296341,0.099189415574074,-0.087267950177193,-0.062956042587757,0.052497759461403,-0.040571857243776,-0.091128811240196,0.033532164990902,-0.214282423257828,-0.097388766705990,-0.162714645266533) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.142109096050262,0.042111851274967,-0.118427649140358,0.064033865928650,0.064310044050217,0.005070311948657,-0.061035521328449,0.127470627427101,-0.041036542505026,-0.066118538379669,0.222226873040199,-0.480201274156570,-0.177542313933372,0.191510796546936,-0.253358244895935,-0.102366164326668) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.102877654135227,0.235680758953094,-0.075370945036411,-0.130204871296883,-0.082256570458412,-0.288753181695938,-0.119931742548943,0.121026739478111,0.150462076067924,-0.138163417577744,0.185707226395607,-0.178240269422531,-0.204298064112663,0.011175128631294,-0.133553266525269,-0.035175193101168) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.074796617031097,-0.138607233762741,-0.006748212035745,0.095162458717823,-0.125176280736923,0.167971715331078,0.129910200834274,-0.025639362633228,-0.410169392824173,0.044435042887926,-0.033959664404392,-0.274721086025238,-0.189577922224998,-0.021301150321960,-0.136239737272263,-0.077867388725281) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.030592743307352,-0.026169082149863,0.086923062801361,-0.121267288923264,0.093437001109123,-0.131853356957436,-0.562641620635986,0.023161703720689,0.061513073742390,-0.135313659906387,0.083389580249786,-0.001281885080971,0.132483348250389,0.087041735649109,-0.369125664234161,0.033864282071590) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.002755180699751,0.195747703313828,-0.181021571159363,-0.002379566431046,-0.075068593025208,-0.184280142188072,0.025696603581309,-0.142725646495819,0.024057492613792,-0.097371011972427,-0.068330071866512,0.001620919094421,-0.127957627177238,0.110421456396580,-0.267104059457779,-0.089162655174732) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.083479024469852,-0.121507883071899,0.050332363694906,-0.083779916167259,0.062556855380535,-0.068488664925098,-0.113761827349663,-0.007195476908237,-0.336242467164993,0.019358582794666,0.045139551162720,0.020960217341781,-0.251063942909241,0.154527604579926,-0.046875093132257,0.029469316825271) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.103790812194347,-0.056359607726336,0.010706379078329,0.154167488217354,0.074042536318302,-0.040382064878941,-0.082804411649704,0.006875567603856,-0.017305105924606,-0.238897353410721,0.077277682721615,-0.106494396924973,0.095152378082275,-0.091378405690193,-0.201117262244225,0.016029186546803) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.069559112191200,0.054206769913435,-0.093366384506226,-0.004700045567006,-0.260015100240707,0.119915798306465,0.044462941586971,-0.035754412412643,0.013890751637518,-0.094078816473484,0.147986188530922,-0.092934526503086,0.141728028655052,-0.011268594302237,0.080409102141857,0.121907360851765) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.333077728748322,0.143998235464096,0.110882118344307,0.054683279246092,-0.010709464550018,-0.195823088288307,-0.058576863259077,-0.099809966981411,0.205407977104187,-0.121097393333912,-0.097668908536434,-0.102422833442688,0.125960931181908,0.047744814306498,0.056334681808949,-0.127863213419914) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.348109006881714,0.065291509032249,-0.166732206940651,0.030565610155463,-0.035788748413324,0.258895486593246,0.161349207162857,-0.070887230336666,-0.315900802612305,0.057506594806910,0.365642845630646,-0.350163191556931,0.015793757513165,0.057693473994732,-0.063573114573956,-0.119821771979332) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.171480104327202,-0.070412941277027,-0.088715799152851,0.002072164090350,-0.123247973620892,0.008704275824130,-0.154868096113205,0.031492788344622,-0.038211926817894,-0.366771489381790,-0.144954741001129,0.068646416068077,0.063372865319252,0.060015853494406,0.078242205083370,-0.015086512081325) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.018659375607967,0.178246855735779,0.095655679702759,0.268077909946442,-0.137924715876579,0.004757812712342,-0.031526502221823,-0.047613807022572,0.172643363475800,0.062188662588596,0.091932334005833,-0.205464988946915,-0.244592979550362,0.064390048384666,0.049788773059845,-0.035066928714514) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.243651732802391,0.039703972637653,-0.246664866805077,0.070860341191292,0.116318449378014,0.077259086072445,0.173726707696915,0.277607470750809,-0.072649903595448,0.297541648149490,-0.146134853363037,-0.289135247468948,-0.058955155313015,0.164680063724518,0.089536093175411,0.175025388598442) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.091342657804489,-0.094521835446358,0.181352108716965,-0.056035902351141,0.058765273541212,-0.302984088659286,-0.080974690616131,0.052056748420000,0.113682612776756,-0.158906608819962,-0.184867382049561,-0.016438107937574,0.109712608158588,-0.028736067935824,-0.030061883851886,0.010151148773730) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.080195777118206,-0.157199457287788,-0.052804633975029,-0.136068880558014,0.082705385982990,-0.091843463480473,0.003261874895543,-0.026713980361819,0.075715973973274,0.041212465614080,0.000969432527199,-0.037750523537397,-0.017716815695167,0.112344935536385,0.062933348119259,0.034448977559805) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.135032162070274,-0.039481755346060,-0.066945940256119,-0.005025446880609,-0.157671570777893,0.130921706557274,-0.066864579916000,0.207562834024429,0.281123638153076,0.091778427362442,0.041224494576454,-0.244257524609566,-0.026340870186687,0.119624719023705,0.035545691847801,-0.104396723210812) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.029312394559383,-0.130712911486626,0.167799875140190,-0.079181693494320,0.105100914835930,0.005517536774278,-0.000091999892902,0.024747332558036,-0.005416064988822,0.088074885308743,-0.044534552842379,-0.001569656538777,0.125091701745987,0.132556185126305,-0.014927534386516,-0.070805922150612) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.057665493339300,0.049367431551218,-0.169526889920235,-0.079768389463425) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_3x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(-0.035798046737909,0.005151281133294,-0.089187242090702,0.048977207392454);
res += mat4(-0.078479461371899,-0.120388887822628,0.072473935782909,0.007381258998066,0.057169504463673,-0.022457988932729,0.007076391018927,0.002549377037212,0.012689298950136,-0.150240182876587,-0.127535745501518,-0.084084436297417,-0.197640076279640,-0.198546856641769,0.106537684798241,-0.053729612380266) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.098352879285812,0.079018421471119,-0.034419782459736,0.213255867362022,0.072356037795544,-0.057233892381191,0.005285405553877,-0.070767767727375,0.013822183944285,-0.005687498021871,-0.032355684787035,-0.064615011215210,-0.179357379674911,0.069386184215546,-0.047112349420786,-0.075452908873558) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.094891428947449,-0.045037873089314,0.002845497336239,0.169910967350006,0.024011166766286,-0.076809167861938,0.049463424831629,0.047925636172295,0.116017743945122,-0.012652789242566,0.092362955212593,-0.052959952503443,-0.232452318072319,0.025046780705452,0.089362047612667,-0.051803950220346) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.022215388715267,0.053707491606474,-0.176363155245781,0.038062721490860,0.114796236157417,-0.084945820271969,0.029831863939762,0.106694921851158,-0.023174775764346,0.037628170102835,-0.004924727603793,-0.254085868597031,-0.112238116562366,-0.141211584210396,-0.131405979394913,0.057128258049488) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.388383537530899,0.198680162429810,0.132359459996223,-0.018279738724232,0.176491126418114,-0.120829865336418,-0.030456060543656,0.040276877582073,-0.130438938736916,-0.244003608822823,-0.037890218198299,-0.038009092211723,-0.215526238083839,0.183133542537689,-0.032178111374378,-0.107158802449703) * MODEL7_texOff(vec2(0,0));
res += mat4(0.017055494710803,-0.175202831625938,0.023093881085515,-0.020248811691999,-0.174412816762924,-0.157722219824791,-0.063460551202297,0.076037280261517,0.181753292679787,-0.182210862636566,0.049735635519028,0.140484660863876,-0.213984668254852,-0.159810081124306,-0.005896791350096,0.084413021802902) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.025798879563808,-0.071912780404091,-0.095388807356358,-0.056325219571590,0.132420271635056,-0.037021271884441,-0.040215320885181,0.162132367491722,0.050574224442244,-0.124011859297752,0.057466711848974,0.317863941192627,-0.088201090693474,0.102895461022854,0.091787770390511,0.037237841635942) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.033177006989717,-0.255250632762909,0.030471958220005,-0.059461440891027,0.186046779155731,0.099979259073734,0.102580770850182,-0.111611261963844,-0.026557104662061,0.208569839596748,-0.323751032352448,0.068289242684841,-0.023257812485099,-0.099857300519943,0.167213648557663,0.227124586701393) * MODEL7_texOff(vec2(1,0));
res += mat4(0.026295216754079,0.012559983879328,0.063179530203342,-0.051977187395096,0.110312007367611,0.155014440417290,-0.119325786828995,-0.034311641007662,-0.013084189034998,-0.020501034334302,-0.070520319044590,0.149050563573837,0.053910296410322,0.116532750427723,0.042730759829283,-0.052450407296419) * MODEL7_texOff(vec2(1,1));
res += mat4(0.118620924651623,0.021428653970361,-0.037933308631182,0.186004027724266,0.022908974438906,0.017176371067762,-0.105965852737427,0.025791455060244,-0.085337363183498,0.023160921409726,0.049347117543221,-0.086755514144897,0.069153390824795,-0.011181444860995,-0.069797143340111,0.019404234364629) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.090959578752518,0.074832700192928,0.140597701072693,0.137916296720505,0.270380645990372,0.025178328156471,-0.151503056287766,0.111552156507969,0.095127902925014,0.168191969394684,0.159555882215500,-0.225441798567772,0.033629879355431,0.060841910541058,-0.061664000153542,0.073083303868771) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.046256057918072,0.217257171869278,0.156704872846603,-0.028937442228198,-0.144385188817978,-0.169887557625771,-0.078780904412270,0.104056730866432,0.014577145688236,0.039367422461510,0.163276731967926,0.029738686978817,-0.262740045785904,-0.023460736498237,-0.131035253405571,0.029359588399529) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.104544259607792,0.021566560491920,0.245921492576599,0.032801464200020,0.120262525975704,0.113545797765255,0.060263607650995,0.037013381719589,0.059889432042837,-0.072639353573322,0.067573986947536,0.085672169923782,0.041077163070440,-0.013910071924329,0.044785134494305,0.041940599679947) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.035487234592438,0.121411934494972,-0.159511417150497,-0.189662218093872,0.131687089800835,0.186582997441292,-0.076670423150063,-0.102572381496429,0.112966507673264,0.030763855203986,-0.069288797676563,-0.030343536287546,-0.111951887607574,-0.020668601617217,0.004274869803339,-0.315133750438690) * MODEL8_texOff(vec2(0,0));
res += mat4(0.076636470854282,-0.169283866882324,0.150736719369888,0.079484686255455,-0.275491267442703,-0.239039495587349,-0.039445832371712,-0.047873284667730,-0.275012344121933,0.087964877486229,-0.330559462308884,0.018460705876350,-0.029962712898850,0.143869131803513,0.172677800059319,-0.036079674959183) * MODEL8_texOff(vec2(0,1));
res += mat4(0.059890039265156,0.035936266183853,0.015119934454560,0.098994277417660,-0.105206549167633,-0.173449471592903,0.119401127099991,-0.037158925086260,-0.335476249456406,-0.169997692108154,-0.075009368360043,0.210268020629883,0.029201928526163,0.133666455745697,-0.004242567811161,-0.084447182714939) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.045730952173471,-0.087391421198845,0.078638188540936,-0.142799079418182,0.163412451744080,-0.214609622955322,0.089613489806652,0.176880925893784,0.598007619380951,-0.890290796756744,0.354923725128174,0.296504944562912,-0.035652168095112,0.058836616575718,-0.039694119244814,0.261313378810883) * MODEL8_texOff(vec2(1,0));
res += mat4(0.029315875843167,0.130954146385193,-0.008492335677147,-0.098331332206726,-0.038459740579128,-0.003676560707390,0.001951472600922,-0.002494230633602,-0.014235632494092,-0.216905638575554,0.183130562305450,-0.083061151206493,-0.042719345539808,0.059260655194521,0.046272661536932,0.038852538913488) * MODEL8_texOff(vec2(1,1));
res += mat4(0.024779234081507,0.071370624005795,-0.007853323593736,-0.026708872988820,-0.033401709049940,-0.081722654402256,-0.176999270915985,0.056125503033400,0.201145708560944,-0.298275649547577,0.057180300354958,-0.197609230875969,0.130198106169701,0.013883056119084,-0.027868634089828,-0.155157923698425) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.208988249301910,0.012614140287042,0.025534518063068,0.093280576169491,-0.419579476118088,0.031992997974157,-0.021007245406508,-0.181205973029137,-0.072681784629822,-0.199951946735382,0.108860522508621,-0.234732523560524,-0.301811069250107,0.038390520960093,0.013138156384230,-0.337081402540207) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.075209669768810,-0.028025461360812,0.051579456776381,0.021958352997899,0.211394414305687,-0.050682418048382,0.148486167192459,0.091120980679989,0.142433732748032,-0.156591773033142,0.132419064640999,-0.100375853478909,0.013027331791818,0.034252595156431,0.044922869652510,-0.062552697956562) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.028753733262420,0.082692459225655,0.102578617632389,-0.080061227083206,0.255427598953247,0.342504292726517,0.205097258090973,-0.018745539709926,0.198112681508064,0.077628478407860,0.006544495001435,-0.056913159787655,0.249836787581444,0.043532084673643,0.047951683402061,-0.046541076153517) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.120097465813160,0.069415509700775,-0.034469623118639,0.035912230610847,0.150987267494202,-0.269414424896240,0.043337866663933,0.089723899960518,0.017636906355619,-0.241502195596695,-0.351723760366440,0.005108757875860,0.153623193502426,-0.237735211849213,-0.455581128597260,0.037117581814528) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.017328364774585,0.005800414830446,-0.063480257987976,-0.040218617767096,-0.593757331371307,0.001118874060921,-0.073683664202690,-0.253437519073486,0.468312203884125,0.067458607256413,-0.124868556857109,0.116156011819839,-0.091729544103146,-0.189066320657730,-0.284346073865891,0.027519775554538) * MODEL9_texOff(vec2(0,1));
res += mat4(0.128807872533798,-0.043536193668842,0.017780099064112,-0.033784907311201,0.066332384943962,-0.164803415536880,0.110300846397877,0.098700627684593,0.058843951672316,0.221395418047905,-0.028044002130628,0.109636828303337,0.066504806280136,-0.034627489745617,0.126580223441124,0.229714602231979) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.139339700341225,-0.037025477737188,0.201220542192459,-0.057198211550713,-0.112207382917404,0.059874493628740,-0.007486719172448,0.015299810096622,0.251830518245697,0.018846547231078,-0.066962644457817,-0.043565440922976,0.284952014684677,-0.193728432059288,0.356596320867538,0.359968662261963) * MODEL9_texOff(vec2(1,0));
res += mat4(0.160607710480690,0.196053177118301,-0.135212734341621,-0.182968676090240,-0.227202847599983,0.309249252080917,-0.206545203924179,-0.060439947992563,0.163005247712135,-0.004832844249904,-0.023130740970373,-0.130249992012978,0.136758923530579,-0.022633802145720,0.234006315469742,0.149378865957260) * MODEL9_texOff(vec2(1,1));
res += mat4(0.010727271437645,-0.111081302165985,0.026509424671531,0.046995114535093,0.038346733897924,-0.090411342680454,-0.014787403866649,-0.151597931981087,0.003803217085078,0.091988719999790,0.108523599803448,0.078552260994911,-0.016342833638191,-0.010369543917477,0.005551215261221,0.096218094229698) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.043952215462923,-0.147175788879395,-0.193802326917648,-0.150782883167267,-0.006692249327898,0.014707638882101,-0.206577882170677,-0.143030211329460,0.191453412175179,-0.015041464008391,0.102544434368610,0.017780821770430,-0.274483323097229,-0.319919586181641,-0.005870016291738,-0.272707968950272) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.106308229267597,0.047079004347324,-0.241736128926277,-0.152312383055687,-0.227595046162605,-0.020790942013264,-0.143758878111839,-0.179652675986290,-0.139144718647003,0.042863607406616,0.029724337160587,-0.041295550763607,-0.121013790369034,-0.096408106386662,0.013531744480133,-0.060317907482386) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.118527472019196,0.055024120956659,0.006711361464113,-0.095392614603043,-0.273049116134644,-0.065948836505413,-0.030623601749539,-0.208622038364410,-0.127326101064682,-0.014352751895785,-0.052226383239031,-0.012246953323483,-0.120288319885731,0.072356320917606,0.004704243037850,-0.051243249326944) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.177477180957794,-0.300711929798126,0.204436495900154,-0.214969083666801,0.037534985691309,-0.164554804563522,0.110286921262741,0.317257344722748,-0.641858816146851,0.102988868951797,0.042531259357929,-0.544019103050232,0.170884013175964,-0.097625136375427,-0.091081686317921,0.040870025753975) * MODEL10_texOff(vec2(0,0));
res += mat4(0.178591966629028,0.069109737873077,0.170605704188347,0.004003023728728,-0.004659841302782,0.007210760843009,0.103797256946564,-0.039127584546804,0.049305845052004,0.263277858495712,0.059002570807934,-0.174579605460167,0.014164313673973,0.162792742252350,-0.344109535217285,0.017793176695704) * MODEL10_texOff(vec2(0,1));
res += mat4(0.140818670392036,0.117336250841618,-0.018533326685429,-0.038936071097851,0.146163836121559,0.071878351271152,-0.103030830621719,0.064827442169189,0.028123350813985,0.058041915297508,0.026780478656292,-0.091654770076275,-0.049533165991306,0.033346109092236,-0.068224653601646,-0.050638847053051) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.330963283777237,0.516552627086639,-0.602022528648376,-0.460393637418747,-0.241423547267914,-0.182827576994896,-0.014706477522850,-0.008486497215927,-0.160914123058319,0.150458425283432,-0.186439841985703,-0.230780288577080,-0.085499234497547,-0.042717929929495,0.071131087839603,0.003963449504226) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.120352976024151,0.289809852838516,-0.295774489641190,0.094436548650265,-0.023340228945017,-0.070852681994438,0.055478658527136,0.126006573438644,-0.069352418184280,0.229427799582481,-0.122803576290607,0.008796676062047,-0.000228512828471,0.014313044957817,0.060676850378513,-0.029313027858734) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.062168218195438,-0.022030353546143,0.043735507875681,0.073268488049507,-0.055834822356701,0.065247349441051,-0.124565802514553,0.067383363842964,0.155541762709618,-0.028136603534222,0.093097023665905,0.035002931952477,-0.126222416758537,-0.059709463268518,0.083428889513016,-0.033077068626881) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.051763765513897,-0.140959084033966,-0.055272873491049,-0.078436426818371,-0.010073671117425,-0.011014578863978,0.047707416117191,-0.071787588298321,0.097864739596844,0.073302164673805,-0.078098185360432,0.164910584688187,0.168247193098068,-0.036136884242296,0.005759104155004,0.020476613193750) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.078418657183647,0.161142915487289,-0.068675354123116,-0.102039620280266,-0.201896980404854,-0.059029806405306,-0.029282921925187,-0.095850095152855,0.032441724091768,-0.030385972931981,-0.067574717104435,0.053572874516249,0.104171715676785,-0.127389401197433,-0.052918076515198,0.049107376486063) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.144692763686180,-0.079868100583553,-0.000404912600061,-0.074261240661144,0.019332280382514,0.058689780533314,0.001695581013337,0.058508545160294,0.035198006778955,-0.014468085020781,-0.103078477084637,0.056233532726765,-0.343405932188034,-0.066325061023235,-0.145989835262299,0.154257535934448) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.040007963776588,0.114062562584877,0.182976141571999,0.065758436918259,-0.142875552177429,-0.063460372388363,0.053452853113413,-0.014899928122759,0.136507272720337,-0.009641177952290,-0.062505424022675,-0.004763930570334,0.449183613061905,-0.025813836604357,0.192518383264542,0.206739321351051) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.150296688079834,-0.339169591665268,0.081183210015297,0.140533357858658,0.236386626958847,-0.050816763192415,0.000217841705307,0.034055311232805,0.229356288909912,-0.071863420307636,-0.095566771924496,0.172172531485558,0.009159202687442,-0.015390790998936,0.063058793544769,-0.092899568378925) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.117435954511166,0.106346905231476,-0.164685592055321,0.066014841198921,-0.009472632780671,0.151697278022766,0.045883353799582,-0.012057998217642,0.110144592821598,-0.061537902802229,0.142778307199478,-0.060097470879555,-0.029473179951310,-0.108122937381268,0.032178800553083,-0.114085562527180) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.111592233181000,0.030142668634653,-0.073829621076584,0.029052576050162,-0.203554362058640,0.060086887329817,-0.084873154759407,-0.195662558078766,-0.254565179347992,-0.179663047194481,0.152310147881508,0.121169075369835,-0.118225239217281,-0.068952143192291,-0.079030744731426,-0.122011244297028) * MODEL11_texOff(vec2(1,0));
res += mat4(0.010734893381596,0.159827724099159,0.061051089316607,0.056123308837414,-0.112838536500931,0.153976142406464,-0.161894813179970,0.069209344685078,0.133834943175316,0.014384115114808,0.168518811464310,-0.089578539133072,-0.148411214351654,-0.097522623836994,-0.092061392962933,-0.023615501821041) * MODEL11_texOff(vec2(1,1));
res += mat4(0.093135595321655,0.085033319890499,-0.051624733954668,-0.191465094685555,-0.149088174104691,-0.126354724168777,0.016896437853575,0.119765058159828,0.115478724241257,-0.035661306232214,0.060678370296955,-0.057806905359030,0.109133049845695,-0.036098964512348,0.001549625769258,-0.125282257795334) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.184280037879944,0.107233703136444,0.041915640234947,-0.031723767518997,0.166061967611313,0.046199213713408,-0.063007883727551,0.090664893388748,-0.373493164777756,0.193005636334419,-0.142766460776329,-0.506214857101440,-0.046941060572863,0.209956198930740,0.133467718958855,0.022643757984042) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.010822465643287,0.094952933490276,-0.032183278352022,-0.130872398614883,-0.254406392574310,0.059151191264391,-0.092431984841824,-0.085693307220936,-0.173085048794746,0.033907424658537,-0.146103352308273,-0.042155560106039,0.103168986737728,0.047021433711052,0.197883427143097,0.114804305136204) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.220231533050537,0.155990496277809,-0.072367757558823,-0.143920630216599,-0.098062053322792,0.210217714309692,-0.126911580562592,-0.088366553187370,-0.051369547843933,-0.063838258385658,0.127126291394234,0.018244773149490,-0.039118867367506,0.008903561159968,0.015855593606830,0.032747812569141) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.403356730937958,0.071828916668892,-0.195741415023804,-0.159228622913361,-0.073896080255508,0.492215335369110,0.170916974544525,-0.050729170441628,0.093386769294739,-0.476044386625290,0.317541539669037,0.396299928426743,0.059884566813707,0.071634083986282,-0.074286863207817,0.083842888474464) * MODEL12_texOff(vec2(0,0));
res += mat4(0.102928511798382,0.269925326108932,-0.342890113592148,0.071940824389458,-0.138791367411613,0.095446065068245,0.018933730199933,-0.135904982686043,0.105181619524956,-0.434584647417068,0.148266389966011,-0.027022557333112,-0.191771849989891,-0.026374215260148,0.154604479670525,0.074676372110844) * MODEL12_texOff(vec2(0,1));
res += mat4(0.047112666070461,0.038103491067886,-0.191809937357903,-0.079225935041904,0.099006332457066,-0.217111602425575,-0.088157862424850,0.173965021967888,0.124462001025677,-0.066352292895317,0.035030931234360,-0.013617189601064,0.023632993921638,-0.055125575512648,0.130418762564659,-0.179017275571823) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.040972914546728,0.008623039349914,-0.039379328489304,-0.023514578118920,0.076053887605667,-0.210803374648094,0.211262986063957,0.098957553505898,-0.091629885137081,0.224799260497093,-0.171990811824799,-0.428286880254745,0.010724750347435,0.191781342029572,-0.039652649313211,-0.267174571752548) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.034731037914753,0.036979872733355,-0.109525360167027,-0.006710011046380,0.025100341066718,-0.009391397237778,-0.096071809530258,-0.036842714995146,-0.160678341984749,0.029832992702723,-0.094275146722794,-0.006142451893538,0.010006874799728,-0.123110756278038,-0.001882247161120,-0.187985524535179) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.046006023883820,0.053402122110128,-0.077953644096851,0.285028010606766) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_3x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(0.159492135047913,0.123129136860371,0.231831148266792,-0.035659097135067);
res += mat4(-0.264770895242691,0.058173630386591,-0.164644271135330,-0.265504926443100,0.098196901381016,-0.035660356283188,-0.070801995694637,-0.083927281200886,0.075290493667126,0.126251220703125,-0.051052276045084,-0.080192595720291,-0.347648590803146,0.035695616155863,0.495758026838303,-0.047023382037878) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.105959258973598,0.133168414235115,-0.212584182620049,0.093709863722324,0.040657080709934,-0.114288032054901,0.010868673212826,-0.013311616145074,-0.175438910722733,0.095520764589310,-0.065247744321823,0.113857403397560,0.016168685629964,0.026669474318624,0.173155173659325,0.222726121544838) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.016864901408553,-0.064478106796741,-0.025210358202457,-0.076826944947243,0.074444651603699,-0.076879121363163,0.004309910815209,-0.081184953451157,0.106205366551876,-0.101030841469765,0.019827617332339,-0.064315117895603,-0.260258644819260,0.008911668322980,0.030442463234067,0.188616171479225) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.404529958963394,-0.005068480968475,-0.494266688823700,0.031310737133026,0.178157910704613,-0.051294427365065,-0.341904580593109,-0.054866150021553,-0.044228125363588,-0.032307978719473,0.072000734508038,-0.098265461623669,0.260059952735901,-0.200709044933319,0.287108749151230,-0.033311918377876) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.279736638069153,-0.069880746304989,-0.210665732622147,-0.036469183862209,0.138906851410866,0.101297147572041,-0.016519034281373,-0.035173773765564,0.021853359416127,0.096003718674183,-0.207791998982430,0.138262793421745,0.166578054428101,0.003098023124039,0.016483111307025,-0.150967478752136) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.147006660699844,0.031512387096882,-0.104128748178482,0.044496960937977,0.113192625343800,0.047599799931049,0.001719761989079,0.058606494218111,0.050201211124659,0.076406016945839,-0.105138525366783,0.002256590407342,-0.041771110147238,0.171155557036400,-0.140334263443947,0.000539239612408) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.289777189493179,0.039391960948706,-0.009181007742882,0.059232611209154,0.125841468572617,-0.096642449498177,-0.166802152991295,-0.041463766247034,0.028633709996939,-0.093312934041023,-0.088584743440151,0.066731333732605,-0.045742884278297,-0.093013174831867,0.164240702986717,0.176285296678543) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.223270013928413,-0.002272075274959,-0.017929721623659,-0.022799853235483,0.098091065883636,-0.122456304728985,-0.024424158036709,-0.012069907970726,0.129738524556160,-0.302914589643478,0.124227873980999,-0.074681848287582,-0.067975409328938,0.060668021440506,-0.185187667608261,0.175255492329597) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.005532772280276,-0.012814516201615,0.052238456904888,-0.017077766358852,0.173574909567833,-0.059538457542658,-0.004201999399811,-0.057710107415915,0.068536199629307,-0.017409227788448,-0.007297841832042,0.013150160200894,-0.070751383900642,-0.077369354665279,-0.198341667652130,-0.047908507287502) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.041861940175295,-0.078149460256100,0.081100784242153,0.041401881724596,-0.129162654280663,-0.053820479661226,0.159226343035698,0.119637824594975,-0.257224649190903,-0.078499659895897,0.084412507712841,0.027608130127192,-0.078324496746063,0.068088352680206,-0.020598907023668,-0.205338656902313) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.123293355107307,-0.040062356740236,-0.024444170296192,0.091490559279919,-0.018591143190861,-0.119192928075790,0.006264903582633,0.034709330648184,-0.019207535311580,-0.405037254095078,0.037040982395411,0.208475887775421,0.108402550220490,0.015844581648707,0.075595930218697,-0.187155917286873) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.053922742605209,-0.006044453475624,0.053357284516096,0.129488378763199,-0.048639822751284,-0.123151399195194,-0.088385656476021,-0.082609035074711,0.250961303710938,-0.181138709187508,-0.024016834795475,-0.007802974898368,-0.013806411996484,0.016590761020780,0.087074041366577,0.168757990002632) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.044227559119463,0.023444063961506,0.008398858830333,-0.014655825681984,0.039001893252134,0.003668908029795,0.169119954109192,-0.062897652387619,-0.035966482013464,0.068465560674667,0.073387451469898,-0.077165693044662,0.017081875354052,-0.170081421732903,-0.106104880571365,0.147386834025383) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.126358702778816,-0.133184283971786,0.159689188003540,0.128354594111443,-0.079956062138081,0.337847381830215,-0.134058311581612,-0.097953982651234,0.150578543543816,0.109588980674744,0.127977997064590,0.083242923021317,0.091293700039387,-0.077132351696491,0.190064772963524,0.142101109027863) * MODEL8_texOff(vec2(0,0));
res += mat4(0.006077740341425,0.094644188880920,0.077099464833736,0.048482492566109,-0.002583034103736,0.004850685596466,-0.078646942973137,0.065558493137360,-0.086005114018917,0.037526160478592,0.009784912690520,0.305396258831024,0.076753057539463,0.047486867755651,0.113161362707615,-0.111789673566818) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.013666134327650,0.050199367105961,0.079923994839191,-0.015280667692423,-0.138935714960098,0.093053758144379,0.130989193916321,0.127995505928993,-0.112472593784332,-0.099338531494141,0.000682759797201,0.026063000783324,0.341015011072159,-0.026048650965095,-0.010128890164196,-0.123520545661449) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.235810622572899,0.108744487166405,0.122225344181061,-0.141762927174568,0.123227536678314,-0.000731456908397,-0.015632137656212,0.093734540045261,0.099501654505730,0.194564044475555,-0.127067133784294,0.009922364726663,-0.123001925647259,0.140028029680252,-0.079740822315216,0.003983216825873) * MODEL8_texOff(vec2(1,0));
res += mat4(0.115139216184616,0.023070976138115,0.017333051189780,-0.151692911982536,0.013965768739581,0.046153437346220,-0.000996115617454,-0.020454606041312,-0.076231367886066,0.063223630189896,-0.096738018095493,-0.029662700369954,0.004967940505594,-0.000929109926801,0.024343108758330,0.037201501429081) * MODEL8_texOff(vec2(1,1));
res += mat4(0.062765717506409,0.031261827796698,0.020131839439273,0.171890139579773,-0.033110301941633,0.064479216933250,-0.014131406322122,0.312440991401672,0.015204909257591,0.138991743326187,0.056497834622860,-0.188206911087036,-0.048461761325598,0.027161343023181,-0.157017797231674,0.129488557577133) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.002220927039161,-0.002831521211192,0.012852429412305,-0.070027202367783,0.001066778087988,-0.256272345781326,0.083329968154430,-0.055550958961248,0.135263949632645,0.090309470891953,-0.032077129930258,-0.152323812246323,0.068610429763794,-0.028382655233145,-0.034891847521067,0.054228436201811) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.126202747225761,0.219220876693726,-0.014896103180945,-0.086723387241364,0.063701242208481,0.110383763909340,-0.119101107120514,-0.152728155255318,0.203009247779846,0.178415715694427,-0.059059690684080,-0.131293803453445,0.028075803071260,0.045949887484312,0.090976633131504,-0.113064207136631) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.043765932321548,0.080194242298603,-0.072583705186844,0.194916218519211,0.251879572868347,-0.186931729316711,-0.557495355606079,0.142209395766258,0.253620356321335,-0.139946475625038,-0.076493367552757,-0.070745900273323,0.158023118972778,-0.076834611594677,-0.144703939557076,-0.245186850428581) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.262187838554382,-0.151314571499825,-0.005664998199791,0.601274073123932,0.201991423964500,0.189741596579552,-0.006534248590469,0.123536348342896,-0.052054818719625,-0.155153885483742,-0.025680981576443,-0.114357799291611,-0.199369668960571,0.161998733878136,-0.005870527122170,-0.229423120617867) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.033820658922195,-0.206732332706451,0.065113648772240,0.297518253326416,0.062791258096695,0.116926074028015,-0.165463417768478,0.125881254673004,0.123293749988079,-0.123657353222370,-0.046384893357754,-0.128114953637123,-0.010147912427783,-0.005435490980744,0.104572676122189,0.070930264890194) * MODEL9_texOff(vec2(0,1));
res += mat4(0.076531752943993,0.012948958203197,-0.098195731639862,0.046975061297417,0.187983021140099,0.183356046676636,0.245160043239594,-0.126712664961815,0.141320794820786,-0.089407548308372,0.097724139690399,0.026037519797683,-0.032734412699938,0.010788106359541,-0.034541744738817,0.060447573661804) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.107972070574760,0.173485159873962,0.049309764057398,-0.058313928544521,-0.204529047012329,0.076641574501991,-0.013612387701869,-0.141111642122269,0.157502934336662,-0.111842244863510,-0.217339560389519,-0.061275806277990,-0.021138437092304,-0.140398427844048,0.044770073145628,0.089938968420029) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.251705735921860,-0.044566005468369,0.053935520350933,-0.062189191579819,-0.175774067640305,-0.208793208003044,-0.137388929724693,0.037869237363338,0.072596818208694,-0.025652293115854,-0.107735924422741,-0.120995819568634,0.151970356702805,-0.087575815618038,0.004063158296049,0.020581981167197) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.131876513361931,0.094040811061859,-0.074162244796753,-0.100729845464230,0.126834943890572,0.120271824300289,0.011475733481348,-0.105685718357563,0.100485734641552,-0.006212301552296,0.158826649188995,-0.242798477411270,0.056319829076529,-0.045704770833254,0.163856178522110,-0.061143063008785) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.039220556616783,0.155624493956566,-0.208175837993622,-0.137855947017670,-0.063935786485672,0.418348491191864,-0.111049510538578,0.328312277793884,-0.105082377791405,0.320107579231262,-0.019374445080757,-0.429502218961716,-0.028690522536635,0.323808729648590,-0.217773467302322,-0.459556996822357) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.014132787473500,0.048108559101820,-0.115319311618805,0.051547646522522,0.038719210773706,0.027517748996615,0.074980072677135,0.142235070466995,-0.129004329442978,0.086980029940605,0.048607476055622,0.017570383846760,-0.067137025296688,0.059957753866911,-0.212448075413704,-0.019602909684181) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.114315107464790,-0.076047986745834,0.048979230225086,-0.137300163507462,0.120238937437534,-0.073107980191708,-0.011419473215938,-0.038145206868649,-0.126404821872711,-0.013906705193222,0.341028064489365,-0.050129532814026,-0.053636282682419,0.040888506919146,0.040623396635056,0.017315901815891) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.029681729152799,-0.192973628640175,0.058725260198116,-0.081654019653797,-0.104046374559402,-0.241273298859596,0.028377711772919,-0.151850372552872,-0.074337415397167,-0.233298942446709,-0.117326997220516,0.002973142545670,-0.029210582375526,-0.508014023303986,-0.036256197839975,0.115721248090267) * MODEL10_texOff(vec2(0,0));
res += mat4(0.008850866928697,-0.020694013684988,0.042614277452230,-0.090022847056389,0.107762455940247,0.059971198439598,0.021117554977536,-0.097825758159161,0.064362592995167,-0.108137510716915,0.011226159520447,-0.089726142585278,0.103678189218044,-0.137008160352707,-0.115598693490028,-0.007509403396398) * MODEL10_texOff(vec2(0,1));
res += mat4(0.097227081656456,-0.209670454263687,-0.064710900187492,-0.027998330071568,0.070133656263351,0.028672738000751,0.054770309478045,0.022442469373345,-0.029384329915047,-0.001081079943106,0.156458914279938,0.032374449074268,-0.130876272916794,-0.080570392310619,0.027596110478044,0.038342423737049) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.068995147943497,-0.409869521856308,-0.135898232460022,-0.155879124999046,0.058247148990631,0.362166255712509,0.032598584890366,0.062050070613623,-0.058230642229319,-0.284693539142609,-0.008084323257208,-0.024131933227181,-0.020487101748586,0.055516209453344,0.041020438075066,0.087537817656994) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.088102400302887,-0.168316543102264,-0.031058635562658,0.118081890046597,-0.032661043107510,-0.139016568660736,-0.008954507298768,0.008765980601311,-0.124974414706230,-0.008511866442859,0.027721865102649,0.026136055588722,0.067746214568615,-0.013512879610062,-0.040052924305201,0.084770582616329) * MODEL10_texOff(vec2(1,1));
res += mat4(0.019684009253979,0.068137377500534,-0.308297216892242,0.064833931624889,-0.488244652748108,0.022983768954873,-0.014469854533672,0.014967790804803,0.393551349639893,-0.054451737552881,0.118251428008080,0.033157780766487,-0.247366890311241,-0.026993177831173,-0.001772974501364,-0.083472825586796) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.098670370876789,0.097479231655598,0.051967889070511,0.020692611113191,-0.187836602330208,-0.033019434660673,-0.108122326433659,0.135928198695183,0.211662292480469,0.085658907890320,-0.063470385968685,0.023740917444229,-0.199822470545769,0.000894653843716,-0.110062062740326,-0.061392225325108) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.130036979913712,-0.127110630273819,-0.053333878517151,-0.245674550533295,-0.220812112092972,-0.004958293400705,0.015730680897832,0.148079439997673,0.094113305211067,-0.076072543859482,-0.137094363570213,0.120269693434238,-0.184621751308441,0.047946631908417,0.068427227437496,-0.048984296619892) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.047615375369787,-0.094912938773632,-0.722711026668549,-0.163511767983437,-0.533868372440338,-0.062967784702778,-0.099439859390259,0.183287426829338,0.187648877501488,0.053262453526258,-0.131392076611519,0.200217276811600,-0.269683957099915,0.035118054598570,0.102374717593193,0.159565240144730) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.429001301527023,-0.126732200384140,-0.016814006492496,-0.096498876810074,-0.364598482847214,0.088583901524544,0.067258082330227,0.085988484323025,0.119686566293240,0.005914883688092,-0.001088027376682,0.064848139882088,-0.034194510430098,-0.054323744028807,-0.378745049238205,-0.106236979365349) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.213342010974884,-0.037970807403326,-0.107916735112667,0.130798012018204,-0.364387094974518,0.155756250023842,0.112859949469566,-0.273110449314117,0.064429365098476,0.108292974531651,-0.141036763787270,0.086306385695934,-0.183902204036713,-0.024400170892477,-0.067805878818035,0.009041263721883) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.115406125783920,0.047545153647661,-0.029739020392299,0.097486883401871,-0.354898810386658,0.006048719398677,0.003892523003742,-0.005725572351366,0.121448278427124,-0.075572602450848,-0.052924402058125,0.057134315371513,0.007032860536128,0.059292837977409,0.223409727215767,0.001983321737498) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.063496299088001,0.009720189496875,-0.051889341324568,0.089275568723679,-0.436293601989746,0.063084945082664,0.144266560673714,-0.036609813570976,0.007535536773503,0.151533260941505,-0.202603906393051,-0.006071755662560,-0.201892167329788,0.027652323246002,0.150266826152802,0.009928341023624) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.145735666155815,0.001587153994478,-0.030881425365806,-0.068405635654926,-0.347568303346634,0.007605540100485,0.159845620393753,0.028241025283933,0.270233511924744,0.048028536140919,-0.053752627223730,-0.036826979368925,-0.153002411127090,-0.101908385753632,0.106110058724880,-0.045902818441391) * MODEL11_texOff(vec2(1,1));
res += mat4(0.042940370738506,-0.028838885948062,-0.049388729035854,0.023987747728825,-0.025965180248022,0.148676648736000,0.075164616107941,-0.114487379789352,0.006047913338989,0.048935063183308,-0.257724672555923,-0.228250339627266,0.235906466841698,-0.014394911006093,0.017104851081967,0.140283271670341) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.015155041590333,-0.262267976999283,0.142266646027565,0.262868285179138,-0.120294272899628,0.209094613790512,0.041263360530138,-0.242154613137245,0.017009243369102,0.051457311958075,-0.041393425315619,-0.208332851529121,0.024154599756002,-0.196934446692467,0.116395100951195,0.085763737559319) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.029626097530127,-0.122594363987446,0.104268155992031,0.027603043243289,-0.304584324359894,0.112009212374687,-0.003901588032022,0.022457061335444,-0.083891592919827,0.017571007832885,-0.188420236110687,0.065866850316525,0.441279530525208,-0.400204211473465,0.094650991261005,0.131006643176079) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.011127480305731,-0.028922978788614,0.048455841839314,0.017799045890570,-0.180747196078300,-0.040162406861782,-0.058041177690029,-0.284365475177765,-0.138704434037209,-0.099733397364616,0.088913448154926,0.074489317834377,0.255703181028366,0.037449318915606,0.107274718582630,-0.031173333525658) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.014821849763393,0.138758793473244,0.292015314102173,0.066825076937675,0.081772312521935,-0.000781394483056,0.123768404126167,-0.064395047724247,0.049682810902596,-0.457943320274353,0.122249387204647,0.086648665368557,0.092552632093430,0.260602056980133,0.207377493381500,-0.013338806107640) * MODEL12_texOff(vec2(0,0));
res += mat4(0.071413256227970,0.000329296512064,-0.009689975529909,-0.158101767301559,-0.170790240168571,0.031732067465782,0.029008997604251,0.003666528733447,-0.129474461078644,-0.023257208988070,-0.052767697721720,-0.043276149779558,0.257118344306946,0.132640838623047,-0.033352743834257,0.362520515918732) * MODEL12_texOff(vec2(0,1));
res += mat4(0.002267489442602,-0.138991683721542,0.076255157589912,-0.034165207296610,-0.006059523671865,-0.002411889610812,-0.023539595305920,0.022444758564234,0.099994473159313,-0.073124043643475,-0.154559299349785,-0.120369374752045,0.361335486173630,0.094878129661083,-0.048561949282885,-0.046331834048033) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.073929443955421,0.076336108148098,0.054651193320751,0.056187536567450,0.050205994397402,-0.058542236685753,-0.049844350665808,0.016693750396371,-0.021572152152658,-0.067703686654568,0.023841841146350,-0.186434596776962,0.000549622462131,-0.062389690428972,0.235159650444984,-0.051554005593061) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.013597147539258,-0.055652543902397,0.034801702946424,-0.025652442127466,-0.148879855871201,0.033339753746986,0.042431656271219,-0.092013217508793,-0.153606683015823,-0.012215145863593,0.102547019720078,-0.026040734723210,0.231495589017868,0.041319634765387,0.195949181914330,-0.057233251631260) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.030627762898803,-0.106667734682560,0.034778706729412,-0.142303586006165) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_3x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(0.011169286444783,-0.195442020893097,-0.040490508079529,-0.027106191962957);
res += mat4(-0.113433800637722,0.187923818826675,-0.105940230190754,-0.114232212305069,-0.127820849418640,-0.017895583063364,0.043106216937304,-0.067425720393658,-0.112001195549965,-0.073103353381157,0.141945883631706,-0.100987538695335,0.172955736517906,0.104242563247681,0.384288161993027,0.097534216940403) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.112165093421936,-0.085264816880226,-0.094171442091465,-0.125592246651649,-0.025616154074669,0.024623384699225,0.029462326318026,-0.131641566753387,0.078694462776184,-0.093658827245235,0.043493371456861,0.041579309850931,-0.088962368667126,-0.194597169756889,0.090340308845043,-0.034809216856956) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.042032696306705,0.031560432165861,-0.046079620718956,-0.043862629681826,-0.095083728432655,0.017438681796193,0.044689644128084,-0.163363814353943,-0.112728700041771,0.074788503348827,0.012566547840834,-0.098082900047302,0.152180030941963,0.019854055717587,-0.000031922289054,-0.178880482912064) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.282668232917786,0.093376755714417,-0.607469677925110,-0.079940579831600,-0.023888636380434,0.033321022987366,-0.109120815992355,-0.129675507545471,0.264368563890457,-0.219729870557785,0.208096653223038,-0.093751586973667,0.079813577234745,0.079048588871956,0.332354247570038,-0.105027578771114) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.048766508698463,-0.287982702255249,-0.181218996644020,-0.065386109054089,0.003329637460411,0.074860706925392,-0.022239701822400,0.100523650646210,-0.217531427741051,0.117941260337830,0.036564569920301,0.031292751431465,-0.042634107172489,-0.190873891115189,-0.405667304992676,-0.158734068274498) * MODEL7_texOff(vec2(0,0));
res += mat4(0.125360265374184,0.058971665799618,-0.001890800660476,0.129583820700645,-0.000493750150781,-0.024750705808401,0.003455672413111,-0.022673783823848,-0.075811147689819,-0.092694312334061,0.096919350326061,0.043719492852688,-0.154093995690346,0.173578694462776,0.046250928193331,-0.209778428077698) * MODEL7_texOff(vec2(0,1));
res += mat4(0.021184083074331,-0.003615900408477,-0.132964327931404,0.005565401632339,-0.127755478024483,-0.000966653868090,0.034827146679163,-0.202287673950195,-0.112942203879356,-0.118214912712574,-0.066602222621441,-0.193283602595329,-0.205854550004005,0.256318122148514,0.276679843664169,-0.277342230081558) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.046347685158253,-0.103415556252003,0.129214704036713,0.171395376324654,0.039414111524820,0.064218215644360,-0.004866170696914,0.027920722961426,-0.234705507755280,-0.033451322466135,-0.095282703638077,-0.108265213668346,-0.112617328763008,0.209423094987869,-0.192857488989830,0.004571491386741) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.008666260167956,-0.066775813698769,0.154001623392105,-0.015534734353423,-0.328446835279465,0.054004766047001,0.046728134155273,-0.147280350327492,0.077178031206131,-0.066419549286366,-0.048900615423918,-0.021497922018170,-0.020001588389277,0.095999665558338,-0.135946646332741,0.019556222483516) * MODEL7_texOff(vec2(1,1));
res += mat4(0.050766788423061,-0.029252398759127,-0.057428237050772,0.083986833691597,-0.070472449064255,-0.104194007813931,-0.250576794147491,0.135252267122269,0.115494519472122,-0.153189331293106,-0.043222296983004,0.162954688072205,-0.077755711972713,0.087634980678558,0.113181173801422,-0.094221405684948) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.071597948670387,-0.092593401670456,0.018066238611937,0.024509476497769,0.055624000728130,-0.105402469635010,-0.076539814472198,0.165969327092171,0.115087173879147,0.189843267202377,-0.244240999221802,-0.098315753042698,-0.040136232972145,0.153419941663742,0.039852414280176,0.162284523248672) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.050364851951599,0.004594563040882,-0.173422887921333,-0.068493053317070,0.202111497521400,0.020344406366348,0.043862938880920,0.182724699378014,-0.093808285892010,0.053553067147732,-0.072285845875740,0.013846967369318,0.130920425057411,0.085233934223652,-0.104303799569607,0.055991448462009) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.110701344907284,-0.147495269775391,-0.019491637125611,0.177754566073418,0.022346815094352,-0.055701978504658,-0.228671997785568,0.141120880842209,-0.051175441592932,-0.088650003075600,-0.203060239553452,-0.345914840698242,0.094570167362690,-0.081672921776772,0.240864455699921,-0.074327364563942) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.039230145514011,0.101784393191338,0.332273513078690,0.007671585306525,-0.009278737008572,-0.226731374859810,0.069964796304703,0.007871597073972,-0.194912165403366,-0.046617724001408,-0.145332172513008,0.230127125978470,0.125602722167969,-0.092847973108292,-0.324911057949066,-0.017831265926361) * MODEL8_texOff(vec2(0,0));
res += mat4(0.206236630678177,-0.234570652246475,0.087990485131741,0.092366881668568,0.118550345301628,0.075830094516277,0.227605149149895,0.241540834307671,0.026947695761919,-0.007087441626936,-0.230778619647026,0.002840027911589,-0.195502638816833,0.026376515626907,-0.068109862506390,-0.168270796537399) * MODEL8_texOff(vec2(0,1));
res += mat4(0.066479094326496,0.025077551603317,0.151919066905975,0.063666582107544,0.205584421753883,-0.205886662006378,-0.092887401580811,0.193052619695663,-0.190557748079300,0.052726667374372,0.067962251603603,-0.131574869155884,-0.215494737029076,0.103689029812813,0.019754212349653,-0.232025533914566) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.132115811109543,-0.001591473701410,0.206602722406387,0.070227265357971,-0.067487552762032,-0.116255469620228,0.128465279936790,0.026956217363477,0.028775824233890,-0.117837011814117,0.012737635523081,0.237216368317604,-0.089470431208611,0.130567401647568,-0.026985809206963,-0.053325433284044) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.233676716685295,0.000483308569528,0.077956244349480,-0.187657535076141,0.138472884893417,-0.003197861835361,0.002765707671642,-0.013410840183496,-0.007811020594090,-0.115253992378712,0.184091284871101,-0.008064695633948,0.136767610907555,-0.005608910694718,0.005975306965411,0.106790922582150) * MODEL8_texOff(vec2(1,1));
res += mat4(0.005393660627306,-0.004029783885926,-0.020145034417510,0.041868939995766,0.099079206585884,-0.282477229833603,0.136275798082352,0.233970254659653,0.238523140549660,-0.215506181120872,0.319892138242722,-0.035819299519062,0.084186919033527,-0.120867192745209,0.009446124546230,0.179569765925407) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.121396817266941,-0.067552939057350,0.059560213238001,-0.072721131145954,0.298288017511368,-0.077217303216457,0.049305360764265,-0.104786947369576,-0.039379797875881,-0.066080234944820,0.264183193445206,-0.099361643195152,0.019768739119172,-0.057780794799328,0.099476858973503,-0.063119947910309) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.055919859558344,-0.000026255058401,0.138355210423470,-0.037787083536386,-0.093008987605572,0.022923717275262,0.066711433231831,-0.102747254073620,-0.058844476938248,-0.183880403637886,0.127038240432739,-0.214967891573906,0.014507858082652,-0.022845465689898,0.016556985676289,0.008807525970042) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.039727572351694,-0.068763926625252,0.044041160494089,-0.101541936397552,0.078183867037296,0.239846184849739,-0.094108365476131,-0.195162102580070,-0.041538923978806,-0.112358815968037,0.032651618123055,-0.161586001515388,0.224790871143341,-0.236267000436783,0.025109956040978,-0.026123616844416) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.057684797793627,0.228585630655289,0.040671303868294,-0.143490165472031,-0.222511455416679,-0.348974525928497,0.194588616490364,-0.254797160625458,-0.079328238964081,0.018183520063758,0.003643614705652,0.062124520540237,-0.375477313995361,0.049336262047291,0.189469769597054,0.125972881913185) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.261986583471298,-0.032295703887939,0.099134057760239,-0.072801530361176,-0.173668414354324,0.154282495379448,-0.199880331754684,0.203205466270447,-0.168579488992691,-0.025329630821943,-0.122294098138809,-0.220955654978752,0.190235272049904,0.156155362725258,0.159408882260323,0.089690349996090) * MODEL9_texOff(vec2(0,1));
res += mat4(0.006424901075661,-0.043791837990284,0.132480010390282,-0.253513634204865,-0.192519411444664,-0.049061182886362,0.292789012193680,-0.323489636182785,0.041024971753359,0.214498206973076,-0.014505198225379,0.017767040058970,-0.018232382833958,-0.158786043524742,-0.111665040254593,0.046395383775234) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.055500160902739,-0.087253265082836,0.062136985361576,0.248807176947594,-0.037486772984266,0.028900496661663,-0.101124927401543,-0.089635603129864,-0.013979470357299,0.136999905109406,-0.349795311689377,-0.175759732723236,0.221155226230621,0.052315354347229,-0.279658347368240,0.196751266717911) * MODEL9_texOff(vec2(1,0));
res += mat4(0.005752434488386,-0.170098423957825,0.065136402845383,0.069517575204372,-0.141625449061394,0.166686415672302,-0.208768725395203,-0.006395752076060,-0.059387680143118,0.081021316349506,0.072424739599228,0.006187691353261,-0.055519286543131,0.121106803417206,-0.038631737232208,-0.052326314151287) * MODEL9_texOff(vec2(1,1));
res += mat4(0.150671660900116,-0.088998861610889,0.135448440909386,0.092661403119564,0.106580443680286,0.110241152346134,0.089438669383526,-0.016010157763958,0.075183004140854,-0.056078873574734,-0.134623602032661,-0.073089301586151,-0.020675485953689,-0.081616409122944,0.073874861001968,-0.082888945937157) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.135976985096931,-0.083739265799522,0.424900949001312,0.073156788945198,-0.017410449683666,0.083800233900547,0.256567955017090,0.177518099546432,0.137527093291283,0.026337262243032,0.070282518863678,0.242321372032166,0.062264908105135,0.201193422079086,0.192428603768349,-0.231039956212044) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.074155360460281,-0.038949232548475,0.142278879880905,0.200909003615379,0.144043505191803,-0.008422359824181,-0.030598303303123,0.049768280237913,0.125092461705208,-0.010920670814812,-0.004253382794559,0.090858533978462,-0.257714122533798,-0.038652706891298,0.119353070855141,0.014788144268095) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.183010697364807,-0.010188529267907,0.038944091647863,-0.000368085806258,-0.134946569800377,0.004642092157155,-0.083715118467808,-0.002862034132704,0.083368428051472,0.047909073531628,-0.025419177487493,0.229702740907669,0.049056589603424,-0.022010356187820,0.102589063346386,0.053025234490633) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.074453063309193,0.054143149405718,-0.010011886246502,-0.106859974563122,0.095151096582413,-0.121205307543278,-0.433725982904434,0.292399913072586,0.286873191595078,0.281143158674240,-0.031599126756191,-0.353821337223053,-0.528739988803864,0.086928874254227,-0.142272144556046,-0.426027506589890) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.087000064551830,-0.001139799598604,0.046096164733171,0.017252456396818,0.064322546124458,0.005156424362212,-0.043224103748798,-0.317186117172241,-0.095475159585476,0.111076883971691,-0.086279205977917,-0.163285657763481,0.016992352902889,0.013754999265075,-0.102493464946747,0.165087923407555) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.018424287438393,0.107316412031651,0.009857649914920,0.098218888044357,-0.004108238499612,0.078300006687641,0.290508598089218,-0.015305382199585,0.129157111048698,0.025442730635405,0.085840649902821,0.208763256669044,-0.051358912140131,0.046642016619444,-0.091853678226471,-0.055749494582415) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.223871663212776,0.471057116985321,-0.145390421152115,-0.173870816826820,0.019825384020805,0.300118118524551,0.131143257021904,-0.053840439766645,-0.163000464439392,0.236988097429276,-0.017178909853101,-0.297400921583176,0.096996553242207,-0.006795238237828,-0.076005510985851,0.114540413022041) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.098532579839230,0.180471152067184,-0.170794486999512,0.141458526253700,-0.266172260046005,0.167510405182838,0.075698494911194,-0.164035782217979,-0.066100031137466,0.150218710303307,-0.122282825410366,-0.057703450322151,0.059392657130957,0.055059518665075,-0.079337641596794,-0.015822332352400) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.039520576596260,0.001949686673470,-0.065071165561676,-0.131604820489883,0.020611045882106,0.041235677897930,0.043759148567915,0.124214962124825,-0.120776489377022,0.202116876840591,-0.114091858267784,-0.166186094284058,0.012956162914634,0.055391538888216,-0.105536609888077,-0.033286079764366) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.043973166495562,-0.053936805576086,0.074249699711800,0.131837502121925,0.113043487071991,-0.031489428132772,-0.130108788609505,0.221893951296806,-0.151758998632431,0.131535470485687,-0.279750108718872,-0.042469438165426,-0.193385809659958,0.162999615073204,-0.153369903564453,-0.050600606948137) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.124247357249260,0.121007807552814,0.020956147462130,0.045328579843044,0.188220366835594,0.050923403352499,-0.164187029004097,0.055188424885273,-0.012037935666740,0.042674854397774,-0.081036277115345,0.117199078202248,-0.065597087144852,-0.003183226799592,0.045165672898293,0.047051385045052) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.088917106389999,-0.121158488094807,0.040518976747990,-0.204492464661598,0.244069769978523,0.053420342504978,0.116324856877327,0.049507528543472,-0.119418233633041,-0.016850296407938,-0.042620178312063,-0.098488271236420,-0.118167713284492,0.130215555429459,-0.341732740402222,0.214037939906120) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.110795617103577,0.141568124294281,-0.215571299195290,0.380772531032562,0.177039951086044,0.122724458575249,-0.115645542740822,-0.030815070495009,-0.396128147840500,0.002496128203347,-0.344887703657150,-0.139732554554939,0.180704802274704,-0.666251420974731,-0.224732592701912,0.124696947634220) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.070031672716141,-0.093384109437466,0.171139404177666,0.347488045692444,-0.017305435612798,-0.151272147893906,0.127693474292755,-0.106801681220531,0.209117278456688,0.197136476635933,-0.247964709997177,0.122932545840740,-0.063271619379520,0.044451188296080,-0.255379617214203,0.035024568438530) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.109675258398056,-0.001902561751194,-0.071366295218468,-0.090879462659359,0.050462700426579,-0.090499110519886,0.140423387289047,-0.049447435885668,0.066673964262009,0.002373618772253,0.242041960358620,-0.063536241650581,0.084821298718452,-0.047918904572725,0.145413458347321,0.202603265643120) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.034487806260586,-0.041655536741018,0.119528532028198,0.047007363289595,0.083094447851181,0.056821752339602,0.049592915922403,-0.028824679553509,0.179144382476807,-0.078645557165146,-0.041295278817415,0.236833229660988,-0.053890753537416,-0.266495198011398,-0.050986539572477,-0.123965419828892) * MODEL11_texOff(vec2(1,0));
res += mat4(0.045096028596163,0.006991467904299,-0.041389644145966,0.074210479855537,0.077782653272152,-0.016520217061043,0.111446261405945,0.112960346043110,-0.050373267382383,-0.052243940532207,-0.032221373170614,0.087898239493370,0.057535637170076,-0.072446316480637,-0.172869354486465,0.049237199127674) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.011282566003501,0.059947967529297,0.000945956853684,0.024035025388002,-0.197398826479912,0.188765630125999,0.161903202533722,0.018730413168669,0.016451992094517,-0.338420003652573,-0.000472591986181,-0.028058659285307,-0.004157591611147,0.033840689808130,-0.087037391960621,0.166807502508163) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.061862342059612,0.001196228899062,-0.054704163223505,0.108124017715454,-0.013403926976025,-0.212468117475510,0.375037819147110,-0.177294135093689,0.000678576703649,-0.188822463154793,0.307085931301117,-0.571358323097229,-0.008743384853005,0.056315723806620,-0.233629822731018,-0.027490872889757) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.086328148841858,0.090376846492290,0.087346009910107,0.088221743702888,0.034754384309053,0.020995981991291,0.026396609842777,0.158335134387016,-0.107872501015663,-0.012742773629725,-0.021515458822250,0.170168817043304,-0.149161607027054,0.106769695878029,-0.266157895326614,-0.096542082726955) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.075824037194252,-0.037303041666746,0.108456186950207,-0.014921668916941,0.105507306754589,-0.122923053801060,-0.143225595355034,0.017958590760827,-0.016630470752716,-0.002360792597756,-0.193013444542885,-0.053004890680313,0.025581432506442,-0.017711127176881,0.115688025951385,0.075178548693657) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.178751870989799,-0.051331937313080,0.092365510761738,-0.072029836475849,0.053394220769405,0.265890508890152,-0.153685599565506,0.021977273747325,-0.333691000938416,-0.046547096222639,0.075189046561718,0.027833068743348,0.170493990182877,0.060286615043879,0.122914433479309,0.023253848776221) * MODEL12_texOff(vec2(0,0));
res += mat4(0.080559000372887,-0.085768990218639,-0.068546533584595,-0.032235644757748,0.003525514621288,0.013969233259559,-0.034435935318470,0.019043769687414,0.193359106779099,-0.198413580656052,-0.112936466932297,-0.101195424795151,0.028596753254533,-0.090449482202530,-0.129227742552757,0.029884556308389) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.291582196950912,0.160447835922241,-0.032820664346218,-0.159256070852280,-0.097970277070999,-0.002108333632350,-0.084769390523434,-0.199198782444000,-0.000957237265538,0.066987462341785,-0.020127084106207,0.184967532753944,0.000266111921519,-0.019749568775296,0.243400961160660,-0.031940739601851) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.034253511577845,0.091357782483101,-0.166790395975113,0.140903457999229,0.130818665027618,-0.015505748800933,-0.086796134710312,0.205616980791092,0.025559827685356,0.082936577498913,0.087592236697674,-0.004967212677002,-0.032942377030849,-0.109115026891232,0.145812854170799,-0.127390831708908) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.048543605953455,0.088283568620682,-0.053683735430241,-0.122889250516891,0.001856089686044,0.060832615941763,-0.113139539957047,-0.002226380398497,-0.227266088128090,0.016340762376785,0.006643253378570,-0.004653779789805,-0.054509583860636,-0.139769122004509,0.177502557635307,-0.126947671175003) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.063847161829472,0.584568738937378,0.398134291172028,-0.053771011531353) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_3x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.114525601267815,-0.063449174165726,-0.218459144234657,-0.122459903359413);
res += mat4(-0.078447729349136,-0.080985702574253,0.064101003110409,-0.136580094695091,-0.158687651157379,0.040647182613611,0.002428173553199,0.043746355921030,0.123475708067417,-0.126502409577370,-0.120000533759594,-0.050965320318937,0.032077167183161,-0.064789436757565,-0.066031776368618,-0.019920518621802) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.001327213482000,-0.219997093081474,-0.157153010368347,-0.033987306058407,0.085281290113926,-0.252738744020462,-0.036429155617952,-0.118450753390789,0.051243957132101,-0.047706283628941,0.172918871045113,-0.056010216474533,-0.019407998770475,-0.080243036150932,0.045349612832069,-0.068304926156998) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.124378606677055,-0.074975982308388,-0.352028399705887,-0.064881324768066,0.002598411869258,-0.003192551899701,0.091562271118164,-0.081972181797028,-0.018721437081695,0.004509251564741,0.074565835297108,0.017433904111385,-0.055126316845417,-0.045085821300745,0.019697904586792,0.094717636704445) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.058702059090137,-0.131842315196991,0.072076238691807,-0.034092813730240,-0.074900709092617,-0.122011885046959,-0.058903709053993,-0.177459880709648,0.092750050127506,0.091226041316986,-0.195451065897942,-0.144293323159218,-0.186203747987747,0.066894896328449,-0.075308382511139,0.112912483513355) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.244441062211990,-0.050138436257839,0.030144363641739,-0.181757822632790,0.125482529401779,0.279251426458359,0.017410337924957,0.174443900585175,0.259817510843277,0.040513746440411,0.292129814624786,-0.168632403016090,0.153092414140701,-0.245997443795204,0.180613845586777,-0.475289732217789) * MODEL1_texOff(vec2(0,0));
res += mat4(0.225088045001030,-0.038795232772827,-0.444203644990921,0.111632280051708,-0.105113632977009,-0.038260903209448,0.217042535543442,-0.035774659365416,-0.122558496892452,-0.298731446266174,-0.032355953007936,0.062209192663431,-0.107166267931461,-0.092308655381203,-0.227451547980309,-0.006479107309133) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.083594717085361,0.146002769470215,-0.006657020188868,0.010571827180684,0.039640989154577,0.028904182836413,0.056620549410582,0.031172463670373,0.227867394685745,-0.064583942294121,-0.105262182652950,-0.025886530056596,-0.141005799174309,-0.013012182898819,-0.031601529568434,-0.000646896951366) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.020978499203920,0.002513963729143,0.055432837456465,-0.055607378482819,0.001955519896001,-0.015314703807235,0.026629807427526,-0.029253616929054,-0.041445773094893,0.037606891244650,0.107328049838543,0.055068466812372,0.215604260563850,0.152911856770515,0.235290989279747,0.103961415588856) * MODEL1_texOff(vec2(1,0));
res += mat4(0.078955762088299,-0.045742448419333,-0.013698900118470,-0.016056571155787,0.009228750132024,0.026506993919611,0.081719823181629,0.055692315101624,-0.034088056534529,0.075733467936516,-0.031947750598192,-0.074348725378513,-0.018184596672654,-0.039582751691341,-0.042947381734848,-0.086291633546352) * MODEL1_texOff(vec2(1,1));
res += mat4(0.082729041576385,-0.058660741895437,0.014095417223871,-0.023126717656851,-0.015061213634908,-0.052629254758358,-0.102172963321209,-0.118223294615746,0.049266822636127,0.076789617538452,0.066004641354084,0.153989732265472,-0.124870672821999,0.111335903406143,-0.069903820753098,0.011452803388238) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.025056760758162,0.100763320922852,0.029100723564625,0.113348402082920,-0.166733235120773,-0.109568789601326,0.161437869071960,-0.147168517112732,0.020467089489102,0.094720691442490,0.055699620395899,0.025351040065289,-0.028240330517292,0.169348388910294,0.089371509850025,-0.007587410975248) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.005675208754838,0.070328563451767,-0.001302228192799,0.065938428044319,0.085508480668068,-0.143338546156883,-0.290810883045197,-0.166817590594292,-0.011255681514740,0.000185480574146,-0.132165461778641,0.012989777140319,0.004443485289812,-0.146648943424225,-0.041539907455444,-0.071729637682438) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.036009661853313,0.122109808027744,-0.096147999167442,0.089046023786068,-0.207910656929016,0.008810015395284,-0.111590340733528,-0.071047499775887,-0.155163854360580,-0.088729828596115,0.326293259859085,0.074139833450317,-0.145548641681671,0.202572777867317,-0.043832652270794,0.384297639131546) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.219457209110260,-0.275832146406174,0.322604864835739,-0.205532863736153,-0.066730342805386,-0.039063308387995,0.087899595499039,-0.042162854224443,-0.154987543821335,-0.158737510442734,-0.625510334968567,-0.095324277877808,-0.185569390654564,-0.014567160978913,0.114049576222897,-0.110002942383289) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.023403696715832,0.287147223949432,0.289574384689331,0.177013978362083,-0.000332941941451,0.018683129921556,-0.108620136976242,0.015510168857872,0.131985962390900,0.150564327836037,-0.267758965492249,0.117434754967690,0.059101827442646,0.134725823998451,-0.038154844194651,-0.063898034393787) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.084797352552414,-0.070423185825348,-0.062866479158401,-0.019179783761501,-0.247003138065338,-0.200970441102982,0.070716664195061,-0.165414273738861,-0.156554698944092,0.046283535659313,0.262888908386230,0.031226651743054,0.082928314805031,-0.037735696882010,0.021458050236106,-0.024741735309362) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.271948009729385,0.061921954154968,0.139142185449600,-0.096261546015739,-0.289148360490799,-0.046393066644669,-0.124720975756645,-0.038865130394697,-0.089298769831657,0.091478481888771,-0.284683078527451,0.087237797677517,-0.058869447559118,0.088074833154678,-0.032350998371840,0.165718346834183) * MODEL2_texOff(vec2(1,0));
res += mat4(0.020212722942233,-0.170437887310982,0.245567843317986,-0.007462874520570,-0.074629515409470,-0.137680962681770,-0.040454991161823,-0.150544270873070,0.038794998079538,-0.046808596700430,0.029683766886592,0.015599815174937,-0.062579356133938,0.105743102729321,-0.030179865658283,0.031034303829074) * MODEL2_texOff(vec2(1,1));
res += mat4(0.160959765315056,0.097165107727051,-0.034990001469851,0.100161001086235,0.233277574181557,0.001055126078427,-0.058698542416096,-0.050562571734190,-0.085918597877026,-0.044854596257210,-0.004718849435449,-0.123650841414928,0.101545393466949,0.095709115266800,0.074429310858250,-0.095273055136204) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.109863206744194,0.000020479035811,0.196891665458679,0.097905203700066,0.014045812189579,-0.016438782215118,0.287655204534531,0.131360724568367,0.028513586148620,-0.081255994737148,-0.122382782399654,0.029856437817216,-0.127813845872879,-0.281508684158325,0.132691904902458,-0.015117099508643) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.082007884979248,-0.020687554031610,-0.063215687870979,-0.066035278141499,0.091526076197624,0.050433266907930,0.024941528216004,0.017895231023431,-0.033997315913439,0.036173678934574,-0.168824762105942,0.028872285038233,0.104885391891003,0.064123608171940,-0.119122132658958,0.029458358883858) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.270959019660950,0.054026886820793,-0.081553101539612,0.079855963587761,-0.006940812338144,-0.004231685306877,0.044683739542961,0.027076471596956,-0.190599992871284,0.086387105286121,-0.043239563703537,-0.034402031451464,0.081922225654125,0.132618531584740,-0.108933195471764,0.236167475581169) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.081989742815495,0.084916017949581,0.204108312726021,0.026383541524410,0.090664878487587,-0.008359597995877,0.106340646743774,-0.142528191208839,-0.134184464812279,0.063497446477413,-0.154704332351685,-0.104160770773888,-0.011753186583519,-0.044465478509665,0.232827499508858,-0.131321430206299) * MODEL3_texOff(vec2(0,0));
res += mat4(0.133108198642731,0.017390714958310,0.181908860802650,0.062536641955376,0.041145354509354,0.105872556567192,0.102259971201420,0.188433051109314,0.147216722369194,-0.094662480056286,-0.353890478610992,-0.070623077452183,-0.069797053933144,-0.230804041028023,0.015740975737572,-0.154422298073769) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.147278949618340,0.073223806917667,0.006360852159560,0.098992593586445,-0.015763128176332,-0.083578936755657,0.282570809125900,-0.068718649446964,-0.071289762854576,-0.030532563105226,-0.100932866334915,0.016018183901906,-0.080708660185337,-0.136546850204468,0.082898117601871,-0.066443949937820) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.080934949219227,0.019871145486832,0.337759435176849,-0.034404750913382,0.037211190909147,-0.004535800311714,-0.194185733795166,-0.079782225191593,-0.198233455419540,-0.012202526442707,0.033667568117380,-0.042943306267262,0.089503265917301,0.060519710183144,-0.177869185805321,-0.031489547342062) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.044739101082087,0.018906839191914,0.102971114218235,0.029350308701396,-0.124858573079109,-0.087362185120583,0.286361992359161,0.001383105409332,0.222852513194084,0.097547277808189,-0.259343951940536,0.116064853966236,-0.224534764885902,-0.228225305676460,0.028698015958071,-0.122287124395370) * MODEL3_texOff(vec2(1,1));
res += mat4(0.140712603926659,0.047773465514183,-0.199078068137169,0.064837925136089,-0.029966650530696,-0.054995443671942,0.044657766819000,-0.021271929144859,-0.239952951669693,-0.075322970747948,0.119492955505848,0.010005277581513,-0.155633255839348,0.032173354178667,0.008301064372063,0.060895707458258) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.062531307339668,0.111191309988499,0.138715490698814,-0.058801654726267,0.084661796689034,-0.069469541311264,-0.213880568742752,-0.318862259387970,0.231725752353668,0.301309406757355,-0.169566288590431,0.043643023818731,0.076615743339062,0.086597003042698,0.023193789646029,-0.200709775090218) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.063645750284195,-0.045079629868269,-0.088389739394188,0.031789869070053,-0.105983980000019,-0.056730166077614,0.144434705376625,0.070342116057873,-0.025712708011270,-0.161703556776047,0.056129764765501,-0.062064580619335,0.045035965740681,-0.200790271162987,-0.163757532835007,0.018905207514763) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.336907058954239,0.126269638538361,-0.118015542626381,0.178099691867828,-0.204887405037880,0.000955235969741,0.079030588269234,0.025026533752680,0.102627679705620,0.170615047216415,-0.041221447288990,0.172251239418983,0.120710879564285,-0.072853572666645,-0.021595738828182,-0.023196941241622) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.144655585289001,0.020406942814589,0.304031640291214,0.460670679807663,0.226917698979378,-0.020341843366623,-0.319504112005234,-0.027266787365079,-0.053833734244108,-0.069826893508434,0.154320761561394,-0.054307796061039,-0.213459894061089,0.030450692400336,-0.066525615751743,0.147749915719032) * MODEL4_texOff(vec2(0,0));
res += mat4(0.159311056137085,0.206799164414406,0.051637195050716,-0.176055938005447,0.014880788512528,0.003067308804020,0.134021878242493,-0.069362193346024,0.065534606575966,-0.009187867864966,-0.025596689432859,-0.010440809652209,0.036132607609034,0.134227395057678,-0.042391352355480,-0.017453532665968) * MODEL4_texOff(vec2(0,1));
res += mat4(0.117899097502232,-0.108209654688835,-0.052652504295111,-0.060795441269875,-0.061622492969036,0.019774258136749,-0.005797474645078,-0.080635830760002,-0.064476259052753,-0.059331607073545,0.022393230348825,-0.102333016693592,-0.047837305814028,0.003836628049612,0.027244566008449,-0.047511842101812) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.092693053185940,0.140344679355621,0.007374741137028,0.105824567377567,0.043891847133636,-0.206560313701630,-0.081581272184849,-0.074290923774242,-0.091137953102589,-0.054410353302956,-0.041754499077797,0.006410545669496,0.119739450514317,0.012622539885342,-0.116352334618568,0.052982833236456) * MODEL4_texOff(vec2(1,0));
res += mat4(0.182328939437866,0.006869656499475,-0.277204871177673,0.178170785307884,0.070074044167995,0.055849373340607,0.192079991102219,0.024614760652184,0.019261181354523,-0.025584364309907,0.088584937155247,-0.027669897302985,-0.057631552219391,-0.006683872547001,0.001566467341036,0.020981524139643) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.054404497146606,0.016373354941607,-0.017431665211916,0.057108726352453,-0.120370157063007,-0.063277356326580,-0.010119232349098,-0.022553699091077,0.038906689733267,0.009475657716393,0.080662533640862,0.072297014296055,-0.041613150388002,-0.014854765497148,0.015374681912363,-0.043723631650209) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.115658521652222,0.117230221629143,-0.055177230387926,0.074871234595776,0.201145231723785,0.187640950083733,-0.104256659746170,0.026561116799712,-0.004443528596312,-0.064291909337044,-0.005567654501647,-0.028694884851575,0.077397279441357,0.005013092886657,-0.001370293204673,0.010977432131767) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.030355766415596,-0.022910367697477,-0.003649398684502,0.005452644079924,-0.017860464751720,-0.065441451966763,0.016531324014068,0.031102318316698,0.006006364244968,-0.036211170256138,-0.065053775906563,0.027928633615375,0.047003835439682,-0.042878307402134,-0.040785562247038,-0.024402162060142) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.197542816400528,0.122027926146984,0.047620691359043,0.048373088240623,0.144297868013382,-0.002095802221447,-0.017583180218935,-0.114072501659393,-0.087097205221653,-0.109764538705349,0.222544848918915,-0.053090807050467,-0.061305575072765,-0.024431584402919,0.009818702936172,-0.076674729585648) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.037604507058859,-0.007908809930086,-0.039255980402231,0.054750896990299,-0.079560220241547,-0.226523295044899,-0.117054976522923,-0.178333193063736,0.009077215567231,0.059374414384365,-0.179826736450195,-0.056225132197142,0.069873459637165,-0.052508223801851,-0.139660298824310,-0.217145144939423) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.032476849853992,0.092581100761890,-0.075180076062679,0.125192120671272,-0.053625337779522,0.095570959150791,-0.026906698942184,0.083480134606361,0.113654442131519,-0.070614315569401,-0.068401888012886,0.024550510570407,-0.162643209099770,-0.133901491761208,0.143685236573219,0.024015333503485) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.116430439054966,-0.040522150695324,0.056887306272984,-0.025484813377261,-0.032819166779518,-0.103722102940083,0.026314120739698,-0.004971394781023,-0.012340070679784,0.034584887325764,0.121826998889446,-0.064561523497105,-0.024753382429481,0.012854759581387,-0.077572375535965,-0.069327391684055) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.050335798412561,0.007650576066226,-0.093321554362774,0.032405126839876,0.027656095102429,0.185882896184921,0.009934877976775,0.041660375893116,-0.160804525017738,0.030272876843810,0.044212725013494,0.155596643686295,-0.035182610154152,-0.311792731285095,0.040416602045298,-0.148731321096420) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.062188021838665,-0.098981097340584,-0.116070441901684,-0.159314468502998,-0.003993844147772,0.037613380700350,-0.064808651804924,0.064206160604954,-0.013090591877699,-0.125597849488258,-0.202584326267242,-0.142016857862473,0.035108145326376,0.043086983263493,-0.159635335206985,0.022794922813773) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.103852085769176,0.086017742753029,0.007996762171388,0.126325637102127,-0.054335936903954,0.051011927425861,-0.099573351442814,-0.001964265480638,-0.135464534163475,-0.032742742449045,0.033481020480394,-0.020637072622776,-0.066765472292900,-0.119733557105064,0.048562008887529,-0.028138376772404) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.074373103678226,0.094962835311890,-0.020668275654316,0.016290944069624,0.051433265209198,0.003920446150005,0.049634963274002,0.062084894627333,0.232172816991806,0.113082937896252,0.016815183684230,0.017338430508971,-0.064972639083862,-0.088203348219395,-0.011698989197612,-0.129426434636116) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.063574515283108,0.029595220461488,-0.094408012926579,-0.005549834575504,-0.091678619384766,-0.021839072927833,0.106234900653362,-0.053370032459497,-0.041919320821762,-0.081835195422173,0.190445840358734,0.094848997890949,-0.098285637795925,-0.009676001034677,0.265124976634979,-0.074076667428017) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.038316570222378,-0.016342755407095,0.055122211575508,-0.008174439892173,-0.175601392984390,0.119875758886337,-0.061931047588587,0.167766645550728,-0.103436119854450,0.188744843006134,-0.030651226639748,0.179173350334167,0.074089527130127,-0.088400840759277,0.097496628761292,-0.144487038254738) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.009870242327452,0.133670255541801,0.187948107719421,0.148588269948959,-0.026650566607714,0.038053024560213,-0.001434723380953,-0.278984367847443,-0.087450861930847,-0.091047279536724,-0.100030899047852,-0.253890007734299,0.093325793743134,-0.165029928088188,-0.169806271791458,0.005982830189168) * MODEL6_texOff(vec2(0,0));
res += mat4(0.092479564249516,0.022256128489971,-0.198760941624641,-0.076499007642269,0.022884994745255,-0.146009653806686,0.231899678707123,-0.000357320735930,0.204051658511162,-0.005269793793559,0.027212111279368,0.114688366651535,-0.171214327216148,-0.084543444216251,0.014915802516043,-0.111263126134872) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.013315315358341,0.175628542900085,-0.065231613814831,0.136533007025719,0.118214242160320,0.031370196491480,0.043340209871531,0.073209978640079,0.016301650553942,0.005088181234896,0.065176725387573,0.024986227974296,0.022283567115664,0.022246448323131,0.036291699856520,0.016863353550434) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.041129089891911,-0.006942073348910,0.025862667709589,-0.046265140175819,-0.008660834282637,0.153138726949692,0.016960207372904,0.305301934480667,0.116142429411411,0.070247285068035,0.022989757359028,0.077795282006264,-0.108332291245461,-0.045294381678104,-0.008309715427458,-0.065743327140808) * MODEL6_texOff(vec2(1,0));
res += mat4(0.112087391316891,0.109094999730587,-0.016757968813181,0.124181784689426,0.040273401886225,0.260378658771515,0.065402388572693,0.099281527101994,0.055635996162891,0.028781197965145,0.060685679316521,0.003911796025932,-0.150777786970139,-0.095117010176182,0.008221143856645,-0.103252992033958) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.039730470627546,0.102644622325897,-0.015040775761008,0.056483224034309) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_3x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.033357176929712,-0.143992051482201,-0.294619917869568,0.012819978408515);
res += mat4(-0.019742270931602,-0.313254445791245,-0.093040905892849,-0.027865121141076,0.019116535782814,0.133649438619614,-0.029543003067374,0.023813175037503,0.044099450111389,-0.032416496425867,-0.089961782097816,0.000938147946727,-0.142962455749512,0.002067111898214,-0.005575715564191,-0.003409719327465) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.010856292210519,-0.074883423745632,0.087982915341854,-0.111344233155251,0.031879015266895,-0.171518638730049,-0.354906052350998,0.120880007743835,-0.028077483177185,0.200559303164482,0.061625864356756,0.104629307985306,-0.159028753638268,-0.062710106372833,0.056543767452240,-0.013593701645732) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.004805928096175,0.230675280094147,0.190667942166328,-0.005601707845926,0.033926643431187,0.002230434445664,-0.088997125625610,0.050054635852575,-0.019619671627879,-0.157234057784081,-0.071163617074490,0.025056276470423,-0.101830653846264,0.009858387522399,0.025300735607743,-0.083924598991871) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.031905043870211,-0.043782413005829,0.140535339713097,-0.007045588456094,0.008968045003712,0.042522337287664,-0.153390705585480,0.053363230079412,0.093007035553455,0.087630979716778,0.015824671834707,0.168618753552437,-0.236541271209717,0.049243248999119,0.004145072307438,-0.100009135901928) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.053823456168175,-0.283020138740540,-0.202057823538780,-0.175270289182663,0.012861969880760,0.194423511624336,-0.134584978222847,-0.087623529136181,-0.058006469160318,0.371884852647781,0.010320412926376,0.275317490100861,0.699650108814240,-0.306113600730896,-0.085279107093811,-0.219818696379662) * MODEL1_texOff(vec2(0,0));
res += mat4(0.038852084428072,0.124431572854519,-0.040750268846750,0.092320822179317,0.002903188578784,-0.027607692405581,-0.040974967181683,-0.093960016965866,-0.029252283275127,0.025483287870884,-0.015152387320995,-0.126453459262848,-0.133238494396210,0.059721279889345,-0.175502493977547,-0.009274091571569) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.008005131967366,0.017144516110420,-0.078425668179989,0.011630581691861,0.032205097377300,0.021075328812003,-0.010950150899589,0.020347410812974,0.019491232931614,0.019055981189013,0.102626197040081,0.020326349884272,-0.091599181294441,0.050686664879322,-0.067475192248821,-0.016135973855853) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.013197478838265,0.017599314451218,0.166748121380806,0.027397498488426,0.025513106957078,0.053896620869637,-0.064052574336529,0.019322834908962,-0.042884480208158,0.093118399381638,-0.040895909070969,0.062354139983654,-0.173485174775124,-0.033123262226582,-0.047339383512735,-0.085823863744736) * MODEL1_texOff(vec2(1,0));
res += mat4(0.005880709737539,0.067176833748817,0.084693178534508,-0.006211673840880,-0.005210597999394,0.029149366542697,-0.041386537253857,-0.062809161841869,-0.023596802726388,0.166785418987274,0.047214835882187,-0.032231226563454,-0.006815840490162,0.002991094719619,0.093107312917709,-0.102535255253315) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.015712630003691,-0.016262086108327,-0.015849830582738,-0.044200103729963,-0.026887290179729,0.070021547377110,0.091096013784409,0.062976002693176,0.041033893823624,0.057821318507195,-0.026651758700609,0.015751620754600,-0.024343423545361,-0.037183981388807,0.140996083617210,0.181479990482330) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.005940916948020,-0.189587265253067,-0.021896295249462,-0.032627493143082,0.014288204722106,-0.264232009649277,-0.046685524284840,-0.048186879605055,0.030091740190983,0.056753952056170,-0.092467263340950,0.017886247485876,-0.050414770841599,-0.055928960442543,0.111643940210342,-0.061093360185623) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.038214527070522,0.208756834268570,0.073064915835857,-0.078041702508926,0.011377553455532,0.163816422224045,-0.167573034763336,0.051840271800756,0.007770468946546,0.017633423209190,-0.052888087928295,0.035419143736362,0.025271767750382,-0.075231619179249,-0.067345663905144,0.002742842771113) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.048486948013306,0.034978918731213,-0.013648277148604,0.143711432814598,-0.015772635117173,0.084157615900040,-0.011956912465394,0.094489566981792,-0.002144718775526,-0.088545218110085,0.069685690104961,-0.178843781352043,-0.063733562827110,-0.089313007891178,-0.083849705755711,-0.000139189665788) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.008228420279920,-0.286894321441650,-0.056189943104982,-0.294317752122879,-0.008386218920350,-0.135556131601334,0.122844681143761,-0.111294016242027,0.058153096586466,-0.255629181861877,0.176873639225960,0.085464678704739,0.031913254410028,-0.015861202031374,-0.112354815006256,-0.232596039772034) * MODEL2_texOff(vec2(0,0));
res += mat4(0.116645783185959,0.183447614312172,-0.099617481231689,0.086633786559105,-0.000294402678264,-0.143102183938026,0.344014614820480,0.026889843866229,-0.042750857770443,0.119226858019829,-0.007418136578053,0.031389087438583,0.039443075656891,-0.060139901936054,-0.016052609309554,0.150773897767067) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.060498639941216,-0.005861736834049,0.030063817277551,0.009889297187328,0.011162345297635,-0.031600315123796,0.098574295639992,-0.046417705714703,-0.009621982462704,0.005668415687978,-0.164824262261391,0.011423241347075,0.026902381330729,-0.070628449320793,0.099893569946289,-0.044322755187750) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.049480590969324,-0.070450402796268,0.058029234409332,-0.121568672358990,-0.029499243944883,0.054916389286518,-0.292062848806381,0.006249367725104,-0.013185101561248,-0.122426450252533,-0.080587960779667,0.010905251838267,0.007080493029207,-0.026620468124747,-0.003547708038241,0.128245532512665) * MODEL2_texOff(vec2(1,0));
res += mat4(0.055510815232992,-0.092495791614056,0.133972287178040,0.085909426212311,-0.030414363369346,-0.024140672758222,-0.030381765216589,-0.028579190373421,-0.022922389209270,-0.015956435352564,0.001430725329556,0.010895702987909,-0.011811845935881,-0.067972004413605,-0.093748323619366,-0.046634662896395) * MODEL2_texOff(vec2(1,1));
res += mat4(0.006567072123289,-0.008186497725546,0.019496284425259,-0.026308231055737,-0.005197363439947,-0.059251304715872,-0.104590021073818,0.000289738003630,0.001765035907738,0.106149397790432,-0.003035094821826,-0.038945000618696,-0.011979059316218,-0.009617104195058,0.062445897608995,-0.078920885920525) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.012394554913044,-0.021288415417075,0.002423792146146,0.092492274940014,0.016415815800428,-0.053941722959280,-0.141616404056549,-0.070608086884022,0.006167565472424,-0.157791331410408,0.075822405517101,0.005721474066377,0.002971016801894,-0.072381272912025,0.367147117853165,-0.001165191060863) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.003431381424889,0.226390361785889,-0.007328962907195,0.026917280629277,0.025570301339030,0.153166919946671,0.044259939342737,0.005770976655185,0.003875000867993,-0.149903431534767,-0.081290423870087,-0.028781011700630,0.003253648290411,-0.010402731597424,0.126960143446922,-0.002851340686902) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.011051190085709,0.126029521226883,0.022299740463495,0.155966043472290,0.002509078942239,-0.027385104447603,0.062083240598440,-0.091747775673866,0.006435088813305,0.119019106030464,-0.195398420095444,0.083796612918377,-0.009741190820932,0.118987768888474,-0.091882474720478,0.060082074254751) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.036024440079927,0.160055026412010,-0.031251102685928,-0.021330114454031,-0.000348591362126,0.005574812646955,0.161761611700058,-0.079315811395645,0.010046348907053,0.003941232338548,-0.236728429794312,-0.102552324533463,-0.027560705319047,0.014431392773986,-0.452962219715118,-0.095593325793743) * MODEL3_texOff(vec2(0,0));
res += mat4(0.027309084311128,-0.144202858209610,-0.011780474334955,0.058861128985882,-0.006099372636527,-0.018816022202373,0.062749065458775,-0.017142213881016,0.024634173139930,-0.073376238346100,-0.049698594957590,0.108990952372551,0.022412559017539,-0.031756047159433,-0.049586445093155,0.012431986629963) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.001718163373880,0.266368120908737,0.000400689081289,0.052546799182892,0.032541368156672,-0.276097357273102,0.166759401559830,-0.064114205539227,-0.007309102918953,0.046643327921629,0.002503197640181,0.021321777254343,-0.000347665452864,-0.158345192670822,-0.003952871076763,-0.014074958860874) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.017757724970579,0.242790535092354,-0.057717502117157,0.015837229788303,-0.004252178128809,0.337268769741058,-0.100199311971664,0.022647608071566,0.023890338838100,-0.119527377188206,-0.048277243971825,0.006223414558917,0.019806297495961,0.109513133764267,0.072984211146832,0.048619501292706) * MODEL3_texOff(vec2(1,0));
res += mat4(0.005132232327014,0.013073391281068,-0.124307505786419,-0.051629617810249,-0.035449493676424,0.058742381632328,0.061002805829048,-0.040705285966396,-0.007760895416141,-0.147362858057022,-0.172186151146889,0.032048083841801,-0.023967875167727,0.074838452041149,0.044216722249985,-0.018842983990908) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.010842573828995,0.029586011543870,-0.058886118233204,-0.043875362724066,0.043516021221876,0.048836577683687,0.017659034579992,0.058738067746162,-0.053889930248260,-0.139484852552414,-0.166142135858536,-0.011177333071828,-0.095859810709953,0.131301730871201,0.002533295424655,-0.013900671154261) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.036093048751354,-0.028303129598498,-0.019846891984344,0.016860622912645,-0.022133663296700,-0.251310586929321,0.146110340952873,0.046318311244249,-0.090904176235199,0.053832441568375,-0.105223253369331,0.102168522775173,-0.092113994061947,-0.031734216958284,0.134984821081161,-0.268450886011124) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.006225618533790,-0.075141817331314,0.063416555523872,0.032105218619108,-0.013916818425059,0.097371071577072,0.091390460729599,0.026935940608382,-0.047437887638807,0.073976673185825,0.086147785186768,-0.102312467992306,-0.021633224561810,-0.025484705343843,-0.108429037034512,-0.169130936264992) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.022003024816513,0.195390924811363,0.014009884558618,0.164013862609863,0.012747938744724,0.027374232187867,-0.042638264596462,0.045754671096802,-0.027405671775341,0.172665134072304,0.120427988469601,-0.105656184256077,0.030575297772884,0.049729440361261,0.046668030321598,-0.125377908349037) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.010033260099590,-0.006547828204930,-0.073995202779770,-0.103074043989182,0.028323885053396,-0.477325886487961,-0.319821596145630,0.051792465150356,0.000807234027889,-0.089872866868973,0.182841032743454,-0.276643127202988,0.042646735906601,0.068938627839088,0.424806267023087,0.276031047105789) * MODEL4_texOff(vec2(0,0));
res += mat4(0.064696803689003,-0.109081007540226,-0.117336831986904,0.129435449838638,-0.027323324233294,0.169082090258598,-0.076367080211639,0.050902288407087,0.043038818985224,0.053497437387705,0.054211966693401,0.090126492083073,0.010595082305372,-0.036983910948038,0.249623611569405,0.012961909174919) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.032034650444984,0.017776029184461,-0.051057506352663,-0.059580225497484,-0.012199413962662,0.018209388479590,0.272616207599640,0.054326672106981,0.044300582259893,-0.071851566433907,0.103619456291199,0.050566244870424,0.015429349616170,0.027247255668044,-0.034855779260397,-0.108504913747311) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.003944594878703,-0.143615365028381,-0.030470538884401,-0.032297320663929,-0.013228281401098,-0.054683919996023,0.235411182045937,0.120625078678131,0.019411856308579,0.075562104582787,0.047288775444031,0.117775887250900,-0.016657678410411,-0.051269114017487,0.154523864388466,-0.180891156196594) * MODEL4_texOff(vec2(1,0));
res += mat4(0.011376100592315,-0.154834404587746,-0.085923068225384,0.006235393695533,-0.022785665467381,0.070599548518658,0.104592919349670,0.048680279403925,0.015933020040393,0.067378029227257,0.004532779566944,-0.000688186846673,0.036000393331051,0.030352875590324,0.009831393137574,-0.098418056964874) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.033430792391300,0.159182950854301,-0.149755671620369,0.104462087154388,-0.004169306717813,-0.046204451471567,-0.044396538287401,-0.063564866781235,0.014642501249909,0.062277439981699,0.010914882645011,-0.024947019293904,0.001136735314503,0.097420327365398,-0.013683721423149,0.019492842257023) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.010929741896689,-0.183203816413879,-0.222642242908478,-0.195875316858292,0.041348636150360,-0.080680593848228,0.032209005206823,-0.277054667472839,0.030279081314802,0.057780753821135,-0.078607782721519,-0.018353957682848,0.026813276112080,0.017605558037758,-0.032344169914722,-0.124795190989971) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.007146193180233,-0.130969896912575,-0.111070029437542,0.041426785290241,0.015064006671309,-0.147550866007805,-0.105566099286079,-0.073852449655533,0.026623368263245,-0.055539179593325,0.096821404993534,0.011351715773344,0.014182798564434,-0.070897758007050,-0.069619655609131,-0.017429480329156) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.009359693154693,0.049941793084145,0.053326439112425,0.003223614068702,0.061825118958950,-0.070551529526711,0.075351923704147,-0.030840158462524,0.035534519702196,-0.206571653485298,0.179519653320313,-0.180360361933708,0.055062446743250,-0.116528801620007,0.053136743605137,-0.037364929914474) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.013096688315272,-0.091908216476440,0.025643145665526,0.077617950737476,0.032485857605934,0.044225130230188,0.289004892110825,0.147587567567825,0.060564741492271,0.175179511308670,0.249015018343925,0.053626626729965,0.047743704169989,0.148235380649567,0.188379973173141,0.343758851289749) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.024915844202042,-0.118947781622410,-0.039175014942884,-0.147356003522873,-0.004880756605417,-0.076575860381126,0.059078510850668,-0.057502578943968,0.005167650058866,-0.120070800185204,-0.116142407059669,-0.037464249879122,0.006264006718993,-0.089345544576645,0.230784475803375,0.009630159474909) * MODEL5_texOff(vec2(0,1));
res += mat4(0.005488502793014,0.053188037127256,-0.149769678711891,0.038578212261200,-0.025102995336056,-0.085399232804775,-0.208094686269760,-0.032432936131954,0.047013703733683,-0.129271566867828,-0.040390603244305,-0.064902521669865,-0.011132639832795,-0.007496313657612,0.044177412986755,0.118181742727757) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.048789367079735,-0.044099386781454,-0.045964524149895,-0.090122945606709,-0.068952940404415,0.006872032303363,-0.105843529105186,-0.174254149198532,0.042315535247326,-0.024699551984668,-0.057399939745665,0.059221416711807,-0.057677581906319,-0.114885330200195,0.146542549133301,-0.080950826406479) * MODEL5_texOff(vec2(1,0));
res += mat4(0.017306556925178,-0.068760387599468,-0.141609191894531,-0.063900902867317,0.006707271095365,0.054395303130150,-0.164197787642479,-0.064080275595188,0.028419733047485,-0.024532390758395,-0.105604521930218,-0.000832516874652,-0.006229246035218,-0.121493227779865,0.230502828955650,0.198795273900032) * MODEL5_texOff(vec2(1,1));
res += mat4(0.008624522015452,-0.020205814391375,0.033935789018869,-0.014836259186268,-0.081658676266670,-0.032976713031530,-0.027687527239323,-0.047424811869860,-0.067958772182465,0.135294109582901,0.101889066398144,0.104898169636726,-0.001190124196000,0.075090318918228,0.006812042091042,-0.034097928553820) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.005584773141891,0.024613073095679,-0.068146131932735,0.193597123026848,-0.062920622527599,-0.016498828306794,0.054053407162428,-0.181938111782074,-0.043824411928654,0.063606657087803,-0.079757079482079,-0.361521542072296,-0.031461145728827,-0.009381856769323,-0.169801220297813,-0.097139075398445) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.027167949825525,0.028969736769795,0.165873199701309,-0.098265007138252,0.068733587861061,-0.094993539154530,0.072225555777550,-0.209121212363243,0.035139866173267,0.062730528414249,0.266432940959930,0.020137285813689,-0.012456973083317,0.059074483811855,0.041182599961758,-0.087636895477772) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.016300393268466,-0.083075121045113,0.111592635512352,0.103528112173080,-0.071744263172150,0.110705666244030,-0.021520793437958,-0.202442467212677,-0.054126467555761,0.168214887380600,0.047947403043509,0.099649630486965,0.066175058484077,0.029739348217845,-0.113286003470421,-0.278544723987579) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.029268572106957,-0.336650878190994,-0.184231668710709,-0.187798216938972,0.031309660524130,-0.027994463220239,-0.319225937128067,0.162430182099342,0.042467657476664,-0.062592864036560,-0.078001879155636,-0.116296716034412,-0.024924816563725,0.449874371290207,0.129571944475174,0.340305626392365) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.006229778751731,-0.028106277808547,0.023685988038778,0.147403731942177,0.101278357207775,-0.023357408121228,0.044769141823053,-0.189161941409111,0.024071909487247,-0.020858865231276,-0.206754356622696,0.094535902142525,-0.043075237423182,0.197578176856041,-0.260688126087189,-0.368042707443237) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.036649040877819,0.131602391600609,0.018207564949989,-0.029281442984939,-0.069313853979111,0.067626468837261,0.007065763231367,-0.144890218973160,-0.047995880246162,0.211289778351784,0.068169184029102,-0.044592376798391,-0.012992204166949,-0.019210824742913,-0.098623491823673,-0.016806503757834) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.016229970380664,-0.136113271117210,0.098219551146030,0.018872851505876,-0.060804892331362,-0.002855404745787,0.122270993888378,-0.116793826222420,-0.017731331288815,-0.065602757036686,0.338768392801285,-0.121177755296230,-0.026160087436438,0.100506275892258,-0.048116724938154,-0.129825010895729) * MODEL6_texOff(vec2(1,0));
res += mat4(0.004354367032647,-0.111699990928173,-0.056825611740351,0.053908444941044,0.099489174783230,0.061391945928335,-0.015317495912313,-0.157515838742256,0.013981958851218,0.020287688821554,0.178164497017860,0.016309948638082,0.049483850598335,0.020824862644076,0.054108686745167,0.070996820926666) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.921578645706177,-0.012785779312253,-0.005598247516900,0.819445729255676) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_3x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.224799185991287,-0.313750773668289,-0.070960097014904,-0.208823427557945);
res += mat4(-0.078039206564426,-0.174464523792267,-0.223978370428085,-0.085416585206985,-0.030850095674396,0.070752643048763,0.037629738450050,-0.301133155822754,-0.096215978264809,-0.279765546321869,0.076958321034908,0.013746298849583,-0.010297492146492,-0.172855392098427,0.112960532307625,-0.161600962281227) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.002849792363122,-0.028424501419067,-0.258053690195084,0.074547320604324,-0.068073607981205,-0.097671657800674,-0.027577647939324,0.152340888977051,-0.060351591557264,0.145953238010406,0.254167586565018,-0.078311868011951,-0.000238371474552,-0.096883699297905,-0.080649286508560,0.207145050168037) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.056773703545332,-0.111462190747261,0.107773691415787,0.166044831275940,0.025787319988012,-0.000812664045952,-0.021599521860480,-0.033198956400156,0.021165577694774,0.106719404459000,-0.136325418949127,-0.061149574816227,0.008576726540923,-0.008866307325661,-0.076747171580791,-0.050656516104937) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.022348182275891,-0.062312055379152,-0.299746841192245,-0.120673045516014,-0.040129628032446,0.100327469408512,0.021897772327065,0.114172033965588,0.063288271427155,0.351420700550079,0.061349194496870,-0.159940302371979,0.171535685658455,-0.077763877809048,0.088612087070942,-0.494459569454193) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.021082226186991,0.111802354454994,-0.101252116262913,-0.233845993876457,-0.284405231475830,0.005438802298158,0.035517033189535,0.084728389978409,-0.042269837111235,-0.067050263285637,0.107794381678104,0.300031214952469,0.372193902730942,0.235224410891533,0.075016997754574,0.326675862073898) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.045402321964502,0.104250140488148,0.093023248016834,0.156575009226799,-0.033577214926481,-0.013346244581044,-0.159773305058479,-0.013183690607548,0.017460577189922,-0.066041484475136,-0.346656113862991,-0.066609114408493,0.041745916008949,-0.138061493635178,-0.145647868514061,0.048862434923649) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.036334924399853,-0.026702178642154,0.075305409729481,0.078541636466980,0.120526015758514,0.027529897168279,0.049082759767771,-0.076262742280960,0.118743173778057,-0.119686841964722,-0.018663050606847,-0.195908829569817,-0.134692519903183,0.124974168837070,0.021479031071067,-0.026128293946385) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.105297647416592,0.030929392203689,0.049823410809040,0.062250461429358,0.088205710053444,0.069930635392666,-0.027315473183990,0.069022618234158,0.078445941209793,0.030945621430874,0.007466762792319,0.190429866313934,-0.190194487571716,-0.045336958020926,0.149723619222641,-0.029863037168980) * MODEL1_texOff(vec2(1,0));
res += mat4(0.087195701897144,0.043725192546844,0.101432837545872,0.046526197344065,-0.002413441427052,0.036201294511557,-0.049671139568090,0.003357558278367,0.048679683357477,0.007538147270679,-0.020745819434524,-0.033703818917274,0.030642339959741,-0.019301874563098,0.019285328686237,0.023446373641491) * MODEL1_texOff(vec2(1,1));
res += mat4(0.029344798997045,-0.000024957391361,0.186754703521729,0.021689331158996,0.094144210219383,-0.058583289384842,0.056858804076910,-0.102369286119938,0.003890514140949,0.064770892262459,-0.093049839138985,0.077234931290150,-0.057782799005508,-0.086556494235992,-0.026805516332388,-0.082861967384815) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.035106092691422,-0.122445017099380,-0.194238260388374,0.183010801672935,0.104331932961941,0.191695615649223,-0.205235674977303,-0.042323119938374,0.066941253840923,0.105992153286934,-0.083580613136292,0.007835597731173,0.044228114187717,0.006766795646399,0.007083445787430,-0.171275734901428) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.038584023714066,-0.143513053655624,0.223517626523972,-0.022334633395076,-0.009973589330912,-0.134695082902908,-0.158674761652946,0.226523578166962,-0.042663559317589,-0.081412129104137,0.061238460242748,-0.015553928911686,-0.034379314631224,-0.155763372778893,0.006477053277194,0.003924029879272) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.036411300301552,-0.172572016716003,0.085009515285492,-0.101850360631943,-0.030878696590662,0.056432958692312,0.061244923621416,-0.047564864158630,-0.025022765621543,-0.026189323514700,-0.121280282735825,-0.215961024165154,0.041730362921953,-0.109522841870785,-0.161833271384239,0.112866334617138) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.184094190597534,-0.274551451206207,-0.041065365076065,0.026524394750595,-0.096235871315002,-0.156837210059166,-0.334135740995407,-0.225019007921219,0.208453163504601,-0.173590078949928,0.222442254424095,0.004273048136383,-0.116002485156059,-0.178403973579407,0.204534173011780,-0.123536117374897) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.024123067036271,-0.008376528508961,0.193093761801720,0.030969807878137,0.247712969779968,0.151970133185387,-0.059823505580425,0.139423817396164,0.040524970740080,-0.034999955445528,0.090254344046116,0.014928074553609,-0.022788004949689,0.037112224847078,0.087426342070103,-0.026109263300896) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.025815442204475,0.036048803478479,0.035419832915068,0.112114995718002,0.260357886552811,0.139224618673325,-0.022099232301116,-0.043132811784744,-0.175702884793282,-0.114931061863899,-0.038491908460855,-0.106627635657787,0.118632867932320,-0.155381366610527,-0.005628404673189,-0.102435663342476) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.060859661549330,0.041072372347116,-0.030324907973409,0.069781191647053,-0.169991940259933,0.086905650794506,-0.294787675142288,0.001544754370116,-0.134325280785561,0.089980348944664,0.033746182918549,0.012097722850740,0.065085962414742,-0.046427577733994,0.022166218608618,-0.079240754246712) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.062740385532379,-0.010909643955529,0.117468096315861,-0.045370895415545,-0.143287301063538,-0.035441737622023,-0.066955804824829,-0.043327808380127,0.021461242809892,0.025207074359059,-0.035197544842958,0.002313332865015,-0.029934477061033,-0.018105929717422,0.024303140118718,-0.063506200909615) * MODEL2_texOff(vec2(1,1));
res += mat4(0.108222424983978,-0.077835425734520,0.169519603252411,0.279097527265549,0.083754837512970,-0.168297752737999,0.039059378206730,0.067130483686924,0.016368474811316,-0.125216156244278,0.119359828531742,-0.027463966980577,-0.027630047872663,-0.066340819001198,0.089904583990574,-0.005210898816586) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.018691854551435,0.173623859882355,0.075576290488243,0.131429463624954,0.052273422479630,0.067809298634529,-0.156967848539352,0.020896932110190,0.029677759855986,-0.024526374414563,-0.149182632565498,-0.121199570596218,0.005609598010778,0.082066506147385,-0.142704889178276,-0.080340020358562) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.057707682251930,-0.157717198133469,0.130083993077278,0.222927555441856,0.109744653105736,0.054525483399630,0.288078129291534,-0.018415397033095,-0.037350203841925,-0.130719766020775,-0.112341746687889,0.057363323867321,0.052050497382879,0.069631345570087,0.087088488042355,0.000305954279611) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.116720788180828,0.000523226684891,0.057642526924610,0.171411663293839,0.035545356571674,0.067656092345715,-0.043637841939926,0.144656851887703,-0.224598586559296,-0.042192753404379,0.103247679769993,0.023528886958957,0.009195527061820,0.077500805258751,-0.059290856122971,0.058126904070377) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.051702074706554,-0.116797707974911,0.120916433632374,-0.333864688873291,0.166080206632614,-0.165987044572830,0.323436528444290,0.071363456547260,-0.103135913610458,-0.071230389177799,-0.105211704969406,-0.036230191588402,-0.375383943319321,0.047172129154205,-0.017990196123719,0.093876428902149) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.034737873822451,0.115820221602917,0.162983089685440,0.110588595271111,0.014671621844172,0.060247279703617,-0.125750437378883,-0.057296983897686,0.050017274916172,0.031605366617441,-0.015737490728498,0.143576845526695,-0.075931094586849,-0.108377009630203,-0.023262167349458,-0.058317407965660) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.108723767101765,0.084608130156994,0.064832799136639,0.210446178913116,-0.044010430574417,-0.147214785218239,-0.053428996354342,0.025376919656992,-0.063975207507610,-0.065360642969608,-0.006703443825245,-0.047449130564928,0.117971248924732,0.062499601393938,-0.159540295600891,-0.045407567173243) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.021477693691850,0.092511460185051,0.112333483994007,0.089596509933472,-0.001925949472934,0.030757870525122,0.072715401649475,0.170762643218040,-0.142055451869965,0.032475274056196,-0.054337356239557,-0.035301260650158,-0.072090610861778,0.071164242923260,0.162798523902893,0.001638637040742) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.102054744958878,-0.067241363227367,0.141719922423363,-0.101366579532623,0.046141628175974,0.018883492797613,-0.093627624213696,-0.032966401427984,-0.137200459837914,-0.015439802780747,-0.069278918206692,-0.003164912341163,0.008723973296583,-0.161833554506302,-0.241327270865440,-0.088319949805737) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.018510045483708,-0.010042475536466,0.182012259960175,-0.079739533364773,0.001307607628405,0.058432817459106,0.059458747506142,-0.210252031683922,-0.049004614353180,-0.122283302247524,0.026357801631093,-0.160062953829765,-0.003052040468901,-0.160468712449074,0.060867529362440,-0.081497177481651) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.017411582171917,0.006928034126759,-0.036015037447214,-0.098698832094669,0.108795285224915,-0.195195868611336,-0.245738089084625,0.126639872789383,-0.007473208941519,-0.054603412747383,0.075619518756866,0.019673364236951,0.057973723858595,0.119958311319351,0.038213405758142,-0.066449329257011) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.024903018027544,-0.173837289214134,-0.026512321084738,-0.064855851233006,-0.053044062107801,0.119474992156029,-0.023467307910323,-0.042818751186132,0.069326542317867,-0.046377625316381,-0.012175161391497,-0.002651714487001,-0.060754727572203,0.021910555660725,-0.077112793922424,0.061869598925114) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.056813146919012,-0.146787613630295,0.064776673913002,0.074004389345646,-0.316890597343445,-0.143798321485519,-0.014063758775592,-0.158788338303566,0.159980118274689,0.033431500196457,0.123988620936871,0.167715758085251,-0.100683376193047,0.059976547956467,0.008810562081635,0.119232766330242) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.218430072069168,-0.003382713533938,-0.008574237115681,-0.183143943548203,-0.260831743478775,0.365762650966644,0.015075467526913,0.068522572517395,0.253506660461426,-0.198270499706268,-0.149134114384651,-0.175394684076309,-0.094390526413918,0.175344780087471,0.111267648637295,-0.189763575792313) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.014984353445470,0.076056018471718,0.306354880332947,0.076674811542034,-0.089706838130951,0.031308781355619,0.119369857013226,0.063726656138897,0.097171865403652,-0.038373235613108,0.061043050140142,-0.037316750735044,0.050477255135775,0.046620957553387,-0.047742072492838,0.072616308927536) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.159298896789551,0.054402396082878,0.012257200665772,0.085786595940590,-0.119040392339230,0.002635152777657,0.030663156881928,0.049796584993601,-0.007526512257755,-0.143548801541328,0.062456496059895,0.078648492693901,0.026061624288559,0.052362576127052,0.049474537372589,-0.064608946442604) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.050464976578951,-0.141770333051682,0.081583507359028,-0.232711642980576,0.036862626671791,0.007530266884714,-0.038117825984955,-0.000922423263546,0.121288739144802,0.016374513506889,-0.025131300091743,0.098511822521687,-0.081154502928257,-0.041682474315166,0.015709221363068,-0.035098630934954) * MODEL4_texOff(vec2(1,0));
res += mat4(0.016738332808018,-0.024994000792503,0.178158581256866,0.018459735438228,0.018448118120432,0.025613052770495,-0.032191239297390,-0.024908533319831,0.053425662219524,0.001355617889203,-0.011755028739572,-0.043353423476219,-0.067566871643066,0.025335239246488,-0.099631018936634,-0.003530047601089) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.046042714267969,-0.062231663614511,0.056914798915386,-0.222379431128502,0.017746519297361,-0.054627258330584,-0.017125975340605,-0.156420916318893,0.007229310460389,0.092902556061745,-0.108085811138153,-0.044934611767530,0.069822922348976,0.040583573281765,0.052471585571766,0.095967225730419) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.074619762599468,-0.014837656170130,-0.277525275945663,0.057382449507713,0.213314443826675,0.174287736415863,0.002550033386797,-0.005272364709526,0.014073235914111,-0.087074972689152,0.186915993690491,-0.035008046776056,0.078914947807789,0.078769795596600,0.053212746977806,-0.021909678354859) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.092417381703854,0.004738627001643,-0.160114660859108,0.021605877205729,0.121571578085423,0.054605863988400,-0.110490404069424,0.024227207526565,-0.084477327764034,-0.014704720117152,-0.156674861907959,-0.058924000710249,-0.031921543180943,0.008739961311221,-0.124977976083755,-0.012555528432131) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.065194152295589,0.004091544076800,0.045811131596565,-0.090647809207439,0.028758896514773,-0.001316818641499,-0.019020900130272,-0.080139838159084,0.076513871550560,0.029637215659022,-0.165829420089722,-0.032992538064718,-0.065768912434578,-0.103322722017765,0.077196933329105,0.054584708064795) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.042142633348703,-0.130317300558090,-0.037769027054310,-0.132418602705002,0.419100344181061,0.309900373220444,-0.088036008179188,0.100305333733559,0.175760924816132,0.075492769479752,0.247345283627510,-0.043726231902838,-0.260695040225983,-0.135188937187195,-0.054626937955618,0.038086440414190) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.031988240778446,-0.087164983153343,-0.325254231691360,0.214784786105156,0.111991643905640,-0.020939750596881,-0.065199807286263,0.042127221822739,0.094698794186115,-0.214602962136269,-0.234295487403870,0.062567636370659,-0.090106040239334,0.092035599052906,-0.068662516772747,-0.117148466408253) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.132458686828613,0.100228011608124,0.080878280103207,0.032650500535965,-0.228463441133499,0.036593716591597,-0.015297821722925,-0.014335935935378,-0.033287283033133,-0.038172338157892,-0.020801866427064,-0.144702225923538,0.138747081160545,0.049307025969028,0.013010494410992,-0.010642169043422) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.131126821041107,-0.003186365356669,-0.055785052478313,0.046212483197451,-0.232078105211258,-0.063772827386856,0.063589364290237,-0.047432802617550,-0.163927376270294,0.012215403839946,0.078622162342072,-0.067001983523369,0.275516390800476,-0.087684296071529,-0.244172275066376,-0.199252277612686) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.129460215568542,-0.116299517452717,-0.098356887698174,0.021286947652698,-0.097946554422379,-0.004705586470664,0.004787360318005,0.065891273319721,-0.102003991603851,0.000385184015613,-0.131318017840385,-0.019725807011127,0.169430270791054,0.033233668655157,0.162432000041008,0.028749553486705) * MODEL5_texOff(vec2(1,1));
res += mat4(0.076363831758499,0.338652759790421,-0.025157684460282,0.067271426320076,-0.095550708472729,-0.063828274607658,0.083088763058186,-0.123154558241367,0.131163015961647,0.125224068760872,0.238034486770630,-0.132370501756668,0.038087576627731,-0.130176484584808,0.038029983639717,0.141755491495132) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.043318748474121,0.217689156532288,-0.023433089256287,0.026656981557608,-0.017057165503502,-0.008021198213100,-0.122769847512245,0.044715464115143,0.044984046369791,-0.058189351111650,0.082503207027912,0.096051774919033,-0.080429896712303,-0.037876866757870,-0.034446842968464,0.100705154240131) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.031897496432066,0.034357707947493,-0.114510364830494,0.004104721825570,0.121092483401299,0.008727196604013,-0.132553532719612,-0.008931078948081,0.054307892918587,-0.188470318913460,-0.094333358108997,0.071009866893291,-0.048186071217060,0.048891168087721,-0.025684053078294,-0.073769278824329) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.130568519234657,0.235748857259750,-0.074912704527378,-0.155234575271606,0.099486798048019,0.039584897458553,0.054543390870094,-0.272342801094055,0.053305208683014,-0.046574130654335,0.234078258275986,-0.348040878772736,-0.171498537063599,0.055330459028482,-0.006951513234526,0.491304069757462) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.119814097881317,-0.225913599133492,0.031292572617531,-0.061952728778124,-0.071090891957283,-0.300125122070313,0.267826408147812,0.210379242897034,0.054439168423414,-0.093148678541183,0.058764077723026,-0.140269547700882,-0.017884306609631,0.304709374904633,-0.100892782211304,0.128107324242592) * MODEL6_texOff(vec2(0,0));
res += mat4(0.018113693222404,0.115476444363594,0.007796556688845,0.017938917502761,0.050922330468893,0.081822454929352,-0.104395814239979,-0.014231633394957,-0.020384619012475,0.027692941948771,-0.051905248314142,0.203658983111382,-0.177781656384468,-0.098406404256821,-0.042145702987909,-0.075032554566860) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.209691733121872,0.042843036353588,0.011100059375167,-0.060500342398882,-0.064624637365341,0.024640792980790,0.132803544402122,-0.201576068997383,0.061006501317024,0.014562238007784,0.143242359161377,-0.237233877182007,-0.002506249118596,0.045755129307508,-0.071088925004005,0.080093927681446) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.254122465848923,0.034467194229364,-0.028057195246220,-0.004568964708596,0.175877615809441,0.153201118111610,0.198345616459846,0.145273998379707,0.156345635652542,-0.056507740169764,0.152925208210945,-0.006533012725413,-0.191531568765640,-0.022085489705205,-0.043948184698820,0.036251951009035) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.040034659206867,0.053173627704382,-0.036488726735115,-0.076786905527115,0.065873570740223,0.076188601553440,0.013951589353383,0.044284008443356,0.120921157300472,0.073134630918503,0.052359297871590,0.011522607877851,0.010797245427966,0.009112990461290,-0.054726481437683,0.009730315767229) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.000167240053997,0.036328453570604,-0.010173659771681,-0.000461002142401) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_3x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.144321009516716,-0.130841657519341,-0.295358806848526,-0.276400923728943);
res += mat4(-0.122263565659523,0.211215198040009,-0.010766522958875,-0.054582223296165,0.070558845996857,-0.010987324640155,-0.040648661553860,-0.084420837461948,0.026769205927849,-0.043953046202660,0.074308425188065,-0.012316480278969,-0.010097672231495,0.037183456122875,0.024108963087201,-0.044151064008474) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.018937956541777,-0.039582718163729,-0.139232397079468,-0.376286596059799,0.431797474622726,-0.113373339176178,-0.098158627748489,-0.392769366502762,-0.014825080521405,-0.013609880581498,0.053774837404490,-0.084660284221172,-0.097137235105038,-0.047056261450052,0.045041855424643,-0.108499549329281) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.130335330963135,-0.024599021300673,0.188065081834793,0.037889584898949,0.027227472513914,-0.105955064296722,0.074184410274029,0.007346238009632,-0.064133591949940,-0.123424552381039,-0.000523815862834,0.067408196628094,-0.110637418925762,0.003659541951492,-0.122412361204624,-0.052264433354139) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.227809354662895,-0.220879212021828,-0.154078796505928,-0.215126618742943,-0.100430376827717,-0.023209488019347,0.046994302421808,-0.002056616125628,-0.050310980528593,0.040785010904074,0.023143513128161,-0.039890278130770,-0.014888012781739,-0.007970942184329,-0.084106169641018,-0.040629561990499) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.033690318465233,0.081212475895882,0.250136911869049,0.166499838232994,-0.070152662694454,0.116082623600960,0.123482599854469,0.088351778686047,0.038332190364599,0.027564132586122,-0.224481269717216,0.076915718615055,0.171640783548355,-0.209870159626007,0.250442326068878,-0.076263487339020) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.039820168167353,0.172562405467033,-0.114042818546295,-0.200851216912270,0.016449013724923,0.051349144428968,0.020515883341432,0.006360879167914,0.008431587368250,0.024747798219323,-0.103906385600567,0.149408951401711,-0.012430102564394,-0.239660352468491,-0.024458862841129,0.062976412475109) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.163917213678360,0.159518972039223,0.052349209785461,0.060588527470827,-0.035973206162453,0.034675430506468,-0.028297778218985,0.081612713634968,0.042786110192537,-0.065396025776863,-0.261702686548233,0.023309078067541,-0.019739490002394,0.051876612007618,-0.081812053918839,0.017121758311987) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.119141742587090,0.036198534071445,-0.027078134939075,-0.128141835331917,-0.044681418687105,-0.012501839548349,-0.046320643275976,0.046243213117123,0.024590872228146,0.074780717492104,0.148545846343040,0.094545014202595,-0.244940251111984,0.212526202201843,0.056529831141233,0.064851194620132) * MODEL1_texOff(vec2(1,0));
res += mat4(0.004235104192048,-0.057569105178118,-0.227661684155464,0.234712317585945,-0.121961191296577,0.051120392978191,0.025432424619794,0.035832140594721,0.115847453474998,0.088623642921448,0.056039657443762,0.012222194112837,-0.076707996428013,0.111569836735725,0.076695188879967,-0.087482459843159) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.087747201323509,-0.025365173816681,-0.070610485970974,0.068274691700935,-0.103468701243401,-0.050843831151724,-0.038619942963123,-0.027561968192458,-0.005242417100817,0.030889404937625,0.018335537984967,-0.061141133308411,0.099296323955059,-0.059345912188292,0.061207223683596,-0.066481396555901) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.014928086660802,-0.031747620552778,0.081451378762722,-0.064346060156822,-0.102495469152927,-0.043997000902891,-0.082446977496147,0.040963511914015,-0.067640513181686,-0.144576072692871,0.080567643046379,0.180675625801086,-0.116681426763535,0.220089420676231,-0.116338774561882,-0.061213359236717) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.041665975004435,0.013814219273627,0.019291654229164,-0.128005236387253,-0.379314899444580,-0.066151320934296,-0.158240646123886,0.009054475463927,0.119503937661648,0.052498701959848,0.019793162122369,0.013434143736959,0.081930488348007,0.008944307453930,-0.053693525493145,-0.138997957110405) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.033359032124281,0.114252798259258,-0.190772265195847,-0.123879745602608,-0.034478139132261,-0.074813514947891,0.020094193518162,-0.004280891735107,-0.060030665248632,-0.060891870409250,0.090412721037865,0.180127650499344,-0.076484367251396,0.154708251357079,0.110986202955246,-0.014540167525411) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.046707361936569,-0.078120179474354,0.253628104925156,0.030606841668487,0.198538780212402,-0.163253098726273,-0.076186276972294,0.003344001248479,-0.280700027942657,-0.109922192990780,-0.277427762746811,-0.413571000099182,-0.031094910576940,0.215820744633675,-0.148508951067924,-0.075143255293369) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.066030293703079,0.016760669648647,0.406346052885056,-0.024449605494738,0.135204374790192,-0.349008172750473,-0.091801293194294,0.049045987427235,-0.081384889781475,-0.237773120403290,0.136433139443398,-0.103598639369011,0.015187707729638,0.122939236462116,0.003340344177559,-0.109321989119053) * MODEL2_texOff(vec2(0,1));
res += mat4(0.069955289363861,-0.004448183346540,-0.112643040716648,0.003905060002580,-0.059997022151947,0.048739112913609,-0.001483696163632,0.073849104344845,0.085439190268517,0.009911721572280,0.114442147314548,0.030359992757440,0.003707943018526,-0.077423833310604,0.115500226616859,-0.236852094531059) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.038666259497404,0.067782133817673,0.154384300112724,-0.022153781726956,-0.193978726863861,0.221198096871376,-0.136019825935364,0.148611962795258,0.158481240272522,0.197277337312698,-0.469436466693878,0.062277190387249,0.003269173437729,-0.197698161005974,0.199800923466682,-0.134677365422249) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.006205749232322,-0.025915609672666,0.090558774769306,-0.007202693726867,-0.107590861618519,0.117029413580894,-0.202935010194778,0.008327671326697,0.009845874272287,0.043439082801342,-0.116139799356461,-0.039621904492378,-0.117536529898643,-0.095223814249039,-0.138838365674019,0.009465019218624) * MODEL2_texOff(vec2(1,1));
res += mat4(0.070355556905270,0.070137314498425,0.039960585534573,0.090686880052090,0.007486832328141,0.099934898316860,-0.012760270386934,-0.162951752543449,-0.255967944860458,-0.046289745718241,0.081114381551743,0.011412433348596,0.042087659239769,0.001808596542105,0.005650905892253,0.095545940101147) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.075965851545334,0.058746520429850,0.000701465236489,-0.043184578418732,-0.150841131806374,0.044876489788294,0.289099186658859,0.016738485544920,-0.211685359477997,-0.366510570049286,-0.081909090280533,-0.125157907605171,0.271618336439133,0.004232269246131,0.002689112909138,-0.339800745248795) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.017236277461052,-0.031223386526108,-0.120197802782059,-0.014666099101305,0.036232825368643,0.021573249250650,0.094479724764824,-0.070424504578114,-0.094319380819798,-0.160580947995186,0.035376071929932,-0.083734191954136,0.092047698795795,-0.175901904702187,0.110375508666039,0.102836318314075) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.000845402362756,0.000965111423284,0.024075729772449,-0.121097251772881,-0.035682775080204,0.017253594473004,-0.179451599717140,-0.123339362442493,-0.018612118437886,-0.012564404867589,0.136117964982986,-0.023685140535235,0.044558562338352,0.058507349342108,-0.106140114367008,-0.073175728321075) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.064537897706032,0.007717392407358,0.163595601916313,0.296663701534271,0.024853205308318,-0.095231093466282,0.235106825828552,-0.113579705357552,-0.221727401018143,0.047804165631533,-0.280998736619949,-0.044889200478792,0.153303861618042,-0.211984351277351,0.034133471548557,0.042761530727148) * MODEL3_texOff(vec2(0,0));
res += mat4(0.088089950382710,-0.024310814216733,-0.126111358404160,-0.152072235941887,0.103153027594090,-0.063816227018833,-0.124929502606392,0.202642589807510,-0.082023859024048,0.033463615924120,0.072062619030476,-0.210704848170280,-0.005361656192690,-0.182612165808678,0.028739960864186,0.027953751385212) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.024388123303652,0.057969603687525,0.034818518906832,0.081121899187565,-0.018024496734142,-0.115524239838123,0.028915559872985,0.049519665539265,0.106464676558971,-0.000947876716964,-0.045161060988903,-0.076174080371857,-0.015717742964625,-0.046577159315348,0.023886505514383,0.104962721467018) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.041355121880770,0.058670423924923,0.051092535257339,-0.167934447526932,0.017534853890538,-0.078152403235435,-0.072621174156666,-0.128735288977623,0.139292329549789,-0.071844659745693,0.123635180294514,0.029674852266908,-0.386739373207092,0.054959807544947,-0.018495257943869,0.042491752654314) * MODEL3_texOff(vec2(1,0));
res += mat4(0.045872565358877,0.025241529569030,-0.065180972218513,0.104012347757816,0.053317368030548,0.084900215268135,0.068516492843628,-0.022559786215425,0.086551517248154,-0.022506900131702,-0.266611605882645,0.076246351003647,-0.143704637885094,-0.064822062849998,0.003718191524968,-0.168715775012970) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.018691338598728,0.006202358286828,0.134712129831314,0.004903677850962,-0.227708429098129,-0.077626973390579,0.035986639559269,0.061365824192762,0.184947505593300,0.065970934927464,-0.021580383181572,0.113323077559471,0.004803281743079,0.044873740524054,-0.051418747752905,-0.087390296161175) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.010140561498702,0.023656638339162,0.058459557592869,0.008344755508006,-0.428422451019287,-0.133129581809044,-0.065118856728077,-0.065160796046257,0.335729807615280,0.205050766468048,-0.009706296026707,-0.101074792444706,-0.069996595382690,0.218166962265968,-0.106387346982956,0.048037245869637) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.035740409046412,-0.153302937746048,-0.038573842495680,-0.061767183244228,-0.114154011011124,-0.053940922021866,0.110637895762920,0.047784745693207,0.072956480085850,0.248427823185921,0.091499224305153,-0.031475014984608,-0.059668291360140,0.035854890942574,0.053213838487864,0.016180234029889) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.071909055113792,0.021081266924739,-0.051054473966360,-0.101124472916126,-0.052865907549858,0.084058657288551,-0.035644937306643,-0.098087400197983,-0.184314265847206,0.057034585624933,-0.132404610514641,-0.229286193847656,0.045007094740868,-0.088266134262085,-0.000077432479884,0.090001389384270) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.132872581481934,-0.277154654264450,0.218421846628189,-0.061457235366106,-0.269572257995605,0.228695422410965,-0.200673282146454,0.057159628719091,-0.317645519971848,0.227700248360634,-0.001865331549197,0.071740329265594,0.067775525152683,0.054676495492458,-0.026810955256224,-0.124204486608505) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.006341324653476,0.002514477120712,0.249846830964088,-0.069119662046432,-0.026119105517864,0.067903585731983,0.198297187685966,0.198964580893517,-0.133010625839233,-0.008527283556759,0.025407532230020,-0.211239084601402,0.155707940459251,-0.030988879501820,-0.045037753880024,0.150761917233467) * MODEL4_texOff(vec2(0,1));
res += mat4(0.034265492111444,-0.040479503571987,0.013446091674268,-0.102179355919361,0.139648005366325,-0.042762000113726,-0.051117520779371,-0.022614052519202,0.126992225646973,-0.064899601042271,0.022651080042124,-0.107762835919857,-0.025978337973356,-0.066519334912300,0.009475038386881,-0.003143389476463) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.167800843715668,0.058242224156857,0.173458471894264,0.035445865243673,0.253444194793701,-0.184199720621109,-0.020846884697676,-0.032898496836424,0.161637440323830,-0.225321099162102,-0.066349945962429,-0.106954365968704,0.019468275830150,0.060974489897490,0.000640569662210,-0.012200365774333) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.016633423045278,0.006473725195974,0.080591358244419,-0.057626847177744,0.126964733004570,-0.117813818156719,0.147936299443245,0.010976653546095,0.087672911584377,-0.150116547942162,-0.080609083175659,0.078797101974487,0.026320347562432,0.013474240899086,0.019456392154098,0.010143228806555) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.203493461012840,0.050942607223988,-0.114066377282143,-0.185493737459183,-0.128888532519341,0.027023892849684,0.010632180608809,-0.029735900461674,0.042656250298023,0.029935479164124,0.010745237581432,-0.030238766223192,-0.005265183281153,0.068692266941071,-0.080616660416126,-0.108398757874966) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.160518124699593,0.080242037773132,-0.125023782253265,0.003309552557766,-0.332979708909988,-0.085837014019489,0.116138353943825,0.177478820085526,0.062878996133804,0.110859885811806,0.162731885910034,0.046873319894075,-0.009410170838237,0.002847982803360,0.007590529974550,0.188118934631348) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.213815510272980,0.003329545259476,0.135536223649979,0.026649255305529,-0.145771443843842,0.031399678438902,-0.112143345177174,-0.037288475781679,0.081810131669044,-0.097673401236534,0.012707867659628,-0.134433805942535,-0.062913417816162,-0.044899683445692,0.077429115772247,0.034702043980360) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.159032434225082,0.061984390020370,-0.084015831351280,0.003160790074617,-0.178453102707863,-0.136581301689148,0.039742995053530,0.125340268015862,0.107836000621319,-0.064512960612774,0.023828482255340,0.158445075154305,0.159800752997398,0.024275250732899,0.001979519147426,0.093191511929035) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.263387352228165,-0.238105401396751,-0.040227830410004,-0.049421429634094,-0.019719529896975,-0.207901194691658,0.130877450108528,-0.119673766195774,0.151356190443039,0.039595592767000,0.282622188329697,-0.167633667588234,0.471765190362930,0.182937622070313,-0.113184407353401,-0.218191117048264) * MODEL5_texOff(vec2(0,0));
res += mat4(0.233069375157356,-0.170274257659912,-0.219487681984901,-0.143357992172241,-0.048314254730940,-0.135049030184746,0.065374314785004,0.058622639626265,-0.214861914515495,0.001873866771348,-0.076936922967434,-0.059460874646902,0.211649239063263,0.249369725584984,-0.107300877571106,0.159608244895935) * MODEL5_texOff(vec2(0,1));
res += mat4(0.021016443148255,0.028908740729094,0.052142988890409,-0.006959958001971,-0.106324046850204,0.022025378420949,-0.057270139455795,0.010186361148953,0.077364280819893,0.081057861447334,0.057590093463659,-0.050986815243959,-0.064399182796478,0.073179446160793,-0.137675553560257,-0.025967588648200) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.165779471397400,0.189307719469070,-0.076259799301624,0.100214585661888,-0.192769005894661,0.096041820943356,0.032488960772753,-0.013311785645783,0.040664669126272,0.094696633517742,-0.114914372563362,0.100974507629871,0.203782051801682,-0.080786779522896,-0.065826505422592,0.256072789430618) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.048409502953291,0.403223574161530,0.052925918251276,0.006697698030621,-0.018269972875714,0.176282420754433,0.024545246735215,-0.084017038345337,0.092833831906319,0.020362881943583,-0.191866055130959,-0.148481801152229,0.041777819395065,-0.061675675213337,-0.012972039170563,-0.137569338083267) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.036319527775049,-0.130339011549950,-0.007831462658942,0.013457922264934,0.079974718391895,0.052487205713987,0.063609980046749,0.015170435421169,-0.135769993066788,-0.082209885120392,0.083742156624794,0.076768547296524,-0.110728360712528,-0.035498615354300,0.014393661171198,-0.032913815230131) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.047549296170473,-0.118702135980129,-0.112946763634682,0.237142294645309,-0.014896485023201,-0.174628794193268,-0.087543405592442,-0.113993927836418,-0.382890582084656,-0.211387842893600,-0.090080954134464,0.134632334113121,0.011274660006166,0.067809708416462,0.000429176405305,0.170556828379631) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.184093922376633,-0.066433250904083,-0.075038589537144,0.248343855142593,0.138897150754929,-0.052562654018402,0.142392218112946,0.010504646226764,-0.085724174976349,-0.252004504203796,0.128005236387253,-0.193329423666000,0.028405783697963,-0.056914865970612,-0.248660787940025,0.032755617052317) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.105717033147812,-0.057453565299511,0.005698755383492,0.273470759391785,0.038764573633671,0.059060860425234,-0.045098569244146,-0.136050969362259,-0.067840687930584,0.145927414298058,-0.097366139292717,-0.120309457182884,0.074421182274818,-0.012305395677686,0.102741867303848,0.017869297415018) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.076987229287624,0.038556694984436,0.023628959432244,0.573627233505249,0.123251274228096,0.133433714509010,-0.121401846408844,-0.056646436452866,0.026149041950703,0.141907215118408,0.068464368581772,-0.153263553977013,-0.015916742384434,-0.131226837635040,-0.146567448973656,0.003650625701994) * MODEL6_texOff(vec2(0,0));
res += mat4(0.046386882662773,0.059056427329779,0.033333424478769,-0.096571132540703,0.040452376008034,-0.011615051887929,0.145885959267616,0.098647557199001,-0.037758231163025,0.127768054604530,-0.150428906083107,-0.151359051465988,-0.183604940772057,-0.070689193904400,-0.158124893903732,-0.116625808179379) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.027937270700932,-0.006008691154420,-0.008321608416736,-0.004562491085380,0.040128711611032,0.013322864659131,0.092358835041523,0.010097891092300,0.056578759104013,0.023059060797095,-0.028949450701475,0.061777550727129,-0.017623940482736,-0.001910599414259,0.000661851430777,0.071223340928555) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.129835039377213,-0.103416129946709,0.061360787600279,0.029673242941499,0.062958784401417,0.048176493495703,0.007304307073355,0.098014682531357,-0.061234958469868,-0.056675124913454,0.115677483379841,0.006938988808542,-0.084787219762802,0.012361636385322,-0.128187507390976,0.017357785254717) * MODEL6_texOff(vec2(1,0));
res += mat4(0.009847783483565,-0.045813772827387,-0.012133372016251,0.210281267762184,0.135097548365593,0.224325850605965,0.129906103014946,0.187067583203316,-0.033478204160929,-0.112473450601101,-0.088503763079643,0.052369020879269,0.068634442985058,-0.126492872834206,-0.070731930434704,-0.043608773499727) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.002515862463042,0.030392052605748,-0.002602946944535,0.042085219174623) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_3x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.047127224504948,-0.350259512662888,-0.159347414970398,-0.130750626325607);
res += mat4(-0.026478262618184,0.009892748668790,-0.000666032254230,-0.122357614338398,-0.062363598495722,0.016616411507130,-0.056053083389997,-0.034092344343662,0.060648441314697,-0.048384506255388,-0.138433948159218,0.049351632595062,0.049401741474867,-0.081946134567261,-0.032196540385485,0.094415612518787) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.093217574059963,0.029421960934997,0.063568755984306,-0.502039253711700,-0.061573114246130,-0.212884485721588,0.141578510403633,-0.175409987568855,-0.006696861237288,0.082247681915760,0.074369043111801,0.001513484632596,-0.035778854042292,0.015793463215232,-0.071678102016449,-0.223398149013519) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.031926896423101,-0.127754211425781,0.083947449922562,0.127490326762199,0.002988369204104,0.104212380945683,-0.016039839014411,-0.026926450431347,-0.039786580950022,0.029593264684081,-0.012986386194825,0.005394391715527,-0.142655894160271,0.077946856617928,0.033274911344051,-0.066701628267765) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.050433434545994,-0.048487104475498,-0.066651441156864,-0.132919803261757,-0.069479510188103,-0.009107155725360,0.162271261215210,0.022027757018805,-0.053461201488972,-0.057238150388002,0.129270941019058,0.523855447769165,-0.029419761151075,-0.079713501036167,0.118000768125057,0.069539882242680) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.027836192399263,0.203816801309586,-0.120177574455738,-0.042191911488771,0.332239598035812,-0.012654000893235,-0.227825552225113,0.214559614658356,0.123800069093704,-0.471208006143570,-0.079312659800053,0.184037983417511,-0.371065050363541,0.224929660558701,-0.166877225041389,-0.085929490625858) * MODEL1_texOff(vec2(0,0));
res += mat4(0.058610159903765,-0.105797193944454,0.112500071525574,0.296103894710541,0.103171706199646,0.104099862277508,-0.106383897364140,-0.044591993093491,-0.005363328848034,-0.019582968205214,0.054024759680033,-0.031226042658091,-0.030102740973234,-0.054751634597778,-0.113898299634457,-0.013342585414648) * MODEL1_texOff(vec2(0,1));
res += mat4(0.068278163671494,0.052137803286314,-0.022580714896321,0.050396583974361,0.041528549045324,0.077569618821144,0.023807140067220,0.053789243102074,-0.061932250857353,0.091999962925911,-0.031634517014027,-0.020807858556509,-0.044455759227276,-0.025150204077363,-0.116848319768906,0.006319795269519) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.007015733979642,0.003077650675550,0.002204055432230,-0.008067475631833,-0.009095089510083,-0.020690158009529,0.016706524416804,-0.015683826059103,-0.092674888670444,-0.120714746415615,-0.130043163895607,0.000656470132526,0.247540175914764,0.158350601792336,0.155838489532471,0.066827811300755) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.027385978028178,0.134786114096642,-0.080794006586075,0.117010906338692,0.009359596297145,0.090077608823776,0.025608047842979,0.017354570329189,0.078344047069550,0.020920507609844,-0.071421884000301,-0.012418883852661,0.091280393302441,-0.065184071660042,-0.104261741042137,0.081849202513695) * MODEL1_texOff(vec2(1,1));
res += mat4(0.030826864764094,-0.016770543530583,0.013873143121600,0.147495970129967,0.042594321072102,-0.114067479968071,-0.056990820914507,-0.112078011035919,-0.012093405239284,0.049642078578472,0.057060576975346,-0.157396554946899,-0.064938187599182,0.000042957522965,0.087909869849682,0.225575879216194) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.098460681736469,0.062117777764797,-0.030027097091079,-0.033595066517591,-0.079193517565727,0.137437328696251,0.107159040868282,-0.235041931271553,0.080465137958527,-0.034863326698542,-0.113016001880169,0.068041965365410,-0.107343234121799,-0.107141338288784,-0.012798996642232,0.004055005032569) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.037459772080183,0.107877649366856,0.020434895530343,-0.104876592755318,0.211556851863861,-0.093489579856396,-0.234605625271797,-0.055314570665359,0.036958333104849,-0.095761053264141,-0.027104916051030,0.031515780836344,0.057302497327328,-0.098354667425156,0.042058732360601,-0.084255896508694) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.074477307498455,-0.126940608024597,-0.130026042461395,-0.020954996347427,0.106188744306564,-0.085342951118946,0.021882841363549,-0.126696869730949,0.036733444780111,0.227807015180588,-0.203404679894447,-0.327156245708466,-0.042401261627674,-0.157454565167427,-0.140862524509430,0.133697211742401) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.077972896397114,0.468964993953705,-0.014492686837912,-0.290702044963837,0.100527890026569,-0.033768631517887,-0.025529803708196,-0.064375482499599,-0.118688084185123,-0.311739653348923,0.074230030179024,-0.524494349956512,0.026792267337441,-0.169171899557114,-0.076989941298962,-0.181429669260979) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.049308963119984,0.412126928567886,-0.151621371507645,0.141576901078224,-0.053578335791826,-0.004238918423653,-0.084544040262699,-0.018087200820446,0.005073444452137,-0.001730638905428,0.018854215741158,0.181589394807816,-0.157103627920151,-0.011291914619505,0.023346100002527,-0.062001828104258) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.053011421114206,-0.117020137608051,-0.039268907159567,-0.078485265374184,-0.008576303720474,0.112112231552601,-0.143391877412796,-0.118880882859230,0.120342761278152,0.046243131160736,-0.286475718021393,0.039281472563744,-0.113120876252651,0.024524021893740,0.065975032746792,0.122438356280327) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.094822905957699,0.053843159228563,0.235364630818367,-0.073682792484760,0.029985373839736,-0.114260345697403,-0.073018051683903,-0.190018489956856,0.152246907353401,-0.096144936978817,-0.120175354182720,-0.019933806732297,-0.242393627762794,-0.232489302754402,0.107454828917980,0.005145356990397) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.007545197382569,0.099036887288094,-0.045644201338291,0.222016543149948,0.158869132399559,-0.011020491831005,-0.213576406240463,-0.102691344916821,0.023286737501621,0.059846051037312,0.016048990190029,0.061658095568419,-0.067035153508186,0.031047465279698,0.096900559961796,-0.084957666695118) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.023569127544761,-0.004802568349987,-0.098309569060802,0.111945830285549,-0.073961228132248,-0.050555273890495,0.026180490851402,0.189785927534103,-0.013388283550739,-0.101966910064220,-0.022617477923632,-0.084781393408775,0.037889204919338,0.040767610073090,-0.263888239860535,0.079788587987423) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.101575069129467,0.253464758396149,-0.050284173339605,-0.040586225688457,-0.076040297746658,0.246193125844002,-0.055641259998083,-0.104445829987526,-0.011059582233429,-0.106076598167419,-0.011181377805769,-0.065528348088264,-0.106656894087791,0.059627983719110,0.148499667644501,-0.026069641113281) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.013529902324080,-0.031133906915784,0.016664464026690,-0.018366316333413,-0.031034583225846,0.094159893691540,0.083187058568001,0.212639048695564,-0.016935858875513,-0.032183423638344,0.072103597223759,-0.055914819240570,-0.104578778147697,0.006726020947099,0.016307624056935,0.137541234493256) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.052751276642084,-0.130450680851936,0.156734049320221,0.052312761545181,-0.126911580562592,0.016470255330205,-0.094242453575134,-0.125481694936752,0.085628800094128,-0.109400771558285,-0.009625353850424,0.169161722064018,0.027164127677679,-0.048783615231514,-0.064764864742756,0.020767632871866) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.086426496505737,0.159541144967079,-0.159416824579239,0.039566878229380,-0.031639941036701,-0.020953573286533,0.028645103797317,0.255384504795074,-0.115490160882473,-0.256210535764694,0.100526906549931,-0.281960636377335,0.034391235560179,0.029067980125546,0.107788115739822,-0.136296987533569) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.115895479917526,0.219395995140076,-0.073959767818451,0.111173450946808,-0.052625209093094,0.073628000915051,0.096034869551659,0.020754488185048,-0.024835556745529,-0.119572222232819,-0.067767731845379,0.160693943500519,0.049161769449711,0.042479112744331,-0.103741496801376,-0.044962637126446) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.032686270773411,0.033618092536926,-0.106698133051395,0.029019393026829,0.017683716490865,0.184759080410004,-0.032063014805317,0.004651156719774,-0.079280696809292,-0.081995218992233,-0.044506184756756,0.009030121378601,-0.021323526278138,0.077317304909229,-0.052560623735189,-0.158172160387039) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.005390114616603,0.041281126439571,-0.080874204635620,0.148872911930084,-0.061300311237574,-0.114117592573166,-0.003076020628214,0.057908549904823,0.026004809886217,-0.062819845974445,-0.415800034999847,0.001367830205709,0.026415124535561,-0.051924761384726,-0.006952031049877,0.165380597114563) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.069965004920959,0.003498398698866,0.001372330123559,0.027077469974756,0.096896514296532,0.095540724694729,-0.013689589686692,-0.043701607733965,-0.030040733516216,-0.014539757743478,0.113111838698387,0.060739330947399,0.040578495711088,-0.045777402818203,-0.178863540291786,-0.155637994408607) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.047121483832598,-0.149647459387779,-0.067836992442608,0.274860322475433,0.022324688732624,0.072062648832798,0.007366639561951,-0.019632175564766,0.040096864104271,0.122771114110947,0.152308538556099,-0.041503969579935,0.056044008582830,-0.042537752538919,-0.156733691692352,0.005345629062504) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.061237748712301,0.026227217167616,-0.061489570885897,0.075741246342659,-0.150491043925285,-0.104713633656502,0.023572234436870,0.024792099371552,0.079768717288971,-0.012665026821196,-0.004252088721842,0.149514332413673,-0.034632153809071,0.017764136195183,0.015581995248795,-0.013586909510195) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.024858158081770,-0.059909626841545,0.018219273537397,-0.041875511407852,0.072541192173958,0.061781227588654,0.015021794475615,-0.073523305356503,0.047304976731539,-0.012429212220013,-0.030641386285424,0.001482989639044,0.096203401684761,-0.073131114244461,-0.051995001733303,0.020086267963052) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.039736181497574,-0.076418451964855,-0.062429130077362,0.080453686416149,0.091914527118206,0.103159137070179,-0.145818501710892,-0.107233539223671,-0.163279265165329,-0.024093268439174,0.110401146113873,0.016361601650715,-0.011735697276890,0.006395091768354,-0.054656248539686,-0.026448393240571) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.134373024106026,0.194200113415718,0.130114853382111,0.108188264071941,-0.257598072290421,0.038725301623344,0.126255452632904,0.049703523516655,-0.045239295810461,0.088881425559521,-0.060549560934305,-0.111074194312096,0.146664232015610,-0.059856906533241,-0.058770209550858,0.075200431048870) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.106840282678604,0.044183015823364,-0.122655339539051,0.048279158771038,0.024848151952028,0.111596681177616,0.061338353902102,0.013934888876975,-0.164946064352989,-0.034224502742290,-0.031967598944902,0.085361160337925,0.098894655704498,-0.179970756173134,-0.084356248378754,-0.034802030771971) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.233958452939987,-0.052648067474365,-0.019051764160395,-0.002914291573688,0.098975181579590,-0.077105931937695,-0.116272456943989,-0.074356995522976,-0.183200970292091,-0.009502206929028,-0.140120923519135,0.049644727259874,0.002678749151528,-0.006228803656995,-0.139056205749512,-0.032123152166605) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.069273747503757,-0.031757738441229,0.035145938396454,0.167861372232437,-0.037418790161610,0.047533221542835,-0.083797298371792,-0.018403120338917,-0.178825542330742,0.021870113909245,0.035033624619246,-0.119971834123135,0.121054738759995,-0.042510189116001,0.122993156313896,0.022048348560929) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.024718772619963,-0.071184732019901,0.060174763202667,0.194350972771645,-0.063218593597412,0.067975983023643,-0.019390521571040,-0.006977713666856,-0.063592061400414,0.042869746685028,0.078884556889534,-0.020203830674291,0.091302692890167,-0.002682087942958,-0.049643829464912,-0.045759674161673) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.134851098060608,-0.024403182789683,0.328005880117416,-0.154865875840187,-0.019240301102400,-0.007057737559080,-0.009249489754438,-0.032623708248138,0.013960151001811,0.021921947598457,0.041213706135750,-0.081959269940853,-0.003060417249799,0.050589326769114,-0.004849904216826,-0.096056856215000) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.274038434028625,0.013102665543556,-0.040305562317371,-0.217427596449852,-0.013016654178500,-0.080267101526260,-0.175562605261803,0.005939013790339,0.048030588775873,-0.006134491879493,-0.049849234521389,-0.012201667763293,-0.005112738814205,0.020629355683923,0.006250645499676,0.024317257106304) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.049948014318943,-0.000574421603233,0.038617245852947,0.146349355578423,0.073465071618557,0.032040346413851,-0.059599995613098,-0.025829618796706,-0.006557054817677,-0.038645993918180,0.092340737581253,0.061636291444302,0.089140139520168,-0.026784177869558,-0.035149902105331,0.017786504700780) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.250201106071472,0.018355807289481,0.003846447216347,-0.146649882197380,0.025767823681235,0.049953542649746,0.068709813058376,0.120673485100269,0.004181548021734,0.162304565310478,-0.035054463893175,-0.376219958066940,0.024123713374138,0.056720048189163,0.014240262098610,0.057394016534090) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.053751666098833,-0.007373871281743,0.005680346861482,-0.100956387817860,-0.127271786332130,-0.086277537047863,0.001128994510509,-0.076837539672852,-0.042573016136885,0.034574106335640,-0.044147007167339,0.175210550427437,0.142936334013939,-0.081955306231976,-0.175211295485497,0.021188059821725) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.045695237815380,-0.232218593358994,0.145260289311409,-0.142195641994476,0.012120693922043,0.045703329145908,-0.043485093861818,0.067446961998940,-0.086433365941048,-0.118286557495594,0.062539674341679,-0.002543131820858,0.061574991792440,0.051418118178844,0.042181517928839,-0.153730005025864) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.170776575803757,0.024774624034762,0.228423595428467,0.031662777066231,-0.039000879973173,0.024791045114398,-0.076220914721489,-0.038883332163095,0.015462324023247,-0.006247428711504,0.010759981349111,-0.043943788856268,0.108272902667522,-0.108357392251492,-0.112119965255260,-0.062175426632166) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.002377406461164,-0.089238502085209,0.268033832311630,-0.063131108880043,0.147593215107918,-0.017964940518141,0.094926044344902,0.014382793568075,0.036310318857431,0.147980481386185,0.019189763814211,0.062194578349590,0.229890957474709,0.093731380999088,0.192769750952721,-0.265336006879807) * MODEL5_texOff(vec2(1,0));
res += mat4(0.050650369375944,-0.100316978991032,0.093316681683064,-0.087335526943207,0.104143567383289,0.022058380767703,0.078223451972008,0.027687540277839,-0.101481363177299,-0.188648447394371,0.021145232021809,-0.075928211212158,-0.077426195144653,-0.136068746447563,-0.042370349168777,0.046079430729151) * MODEL5_texOff(vec2(1,1));
res += mat4(0.019797468557954,-0.000981232151389,0.099634565412998,-0.106437765061855,-0.002926739398390,-0.092878341674805,-0.017555708065629,0.172087758779526,0.069433324038982,0.077548578381538,0.215361595153809,0.305592536926270,0.037107318639755,0.008038403466344,0.047321286052465,-0.060397032648325) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.319301694631577,0.056444533169270,-0.006140945479274,-0.055828370153904,-0.092064864933491,-0.110718391835690,0.007510909810662,-0.036699224263430,0.052960477769375,-0.115081056952477,0.035697508603334,-0.041557196527719,0.084148012101650,0.042055837810040,-0.169877678155899,0.190507918596268) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.072106555104256,-0.131688013672829,0.007741114590317,-0.102491684257984,0.008461553603411,0.107592694461346,-0.029007095843554,0.072554700076580,0.069209821522236,0.069974556565285,0.035013351589441,0.088296346366405,-0.077640004456043,-0.086865104734898,-0.006310220342129,-0.105637162923813) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.244633197784424,0.006203735712916,0.039321031421423,-0.041794143617153,-0.095656357705593,-0.064847230911255,-0.086260408163071,0.107365593314171,0.045539960265160,0.038453120738268,-0.297685086727142,0.240725830197334,-0.053588241338730,0.154915839433670,-0.231150165200233,0.047736909240484) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.036623094230890,0.192262589931488,0.231512159109116,-0.085431411862373,0.082807496190071,-0.305055409669876,-0.081645958125591,0.009620197117329,-0.170424535870552,-0.220465064048767,-0.130896434187889,-0.126973241567612,-0.014045493677258,0.228094533085823,0.007226706482470,0.165302559733391) * MODEL6_texOff(vec2(0,0));
res += mat4(0.078157469630241,0.018333669751883,0.095436222851276,0.051786344498396,-0.131710663437843,0.141876354813576,-0.052105732262135,-0.047849193215370,-0.230482220649719,-0.078279376029968,0.148845776915550,0.056339599192142,0.071856141090393,-0.165353730320930,-0.039790127426386,-0.063490301370621) * MODEL6_texOff(vec2(0,1));
res += mat4(0.168735012412071,-0.074184976518154,-0.066440850496292,-0.010413278825581,-0.065530687570572,-0.001409701304510,0.000856087601278,0.139068573713303,-0.013028495945036,0.064183585345745,-0.028342345729470,0.144513010978699,0.066116809844971,0.094227246940136,0.115672335028648,-0.123746313154697) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.040674664080143,-0.160272434353828,-0.070310488343239,-0.042503699660301,-0.048329174518585,-0.115977041423321,-0.184475392103195,0.082070380449295,0.002148175146431,-0.022645039483905,0.100008256733418,0.076771765947342,0.059760797768831,0.016146864742041,-0.087039761245251,-0.008931062184274) * MODEL6_texOff(vec2(1,0));
res += mat4(0.001691184006631,0.025010352954268,0.069587402045727,-0.020993545651436,0.173014730215073,0.126752093434334,0.044876758009195,0.049221176654100,0.063236512243748,-0.018583750352263,-0.097695656120777,0.000600107305218,-0.074909195303917,-0.038396820425987,-0.101581647992134,-0.072333276271820) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.212509647011757,0.000234494567849,0.001305679557845,-0.008594113402069) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_3x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.259317696094513,-0.103081092238426,-0.094140991568565,-0.286082476377487);
res += mat4(-0.020531143993139,-0.118713699281216,0.045809477567673,-0.055644117295742,0.092760175466537,-0.123560264706612,-0.060116343200207,-0.002720227697864,-0.023037286475301,0.058570481836796,-0.043772924691439,-0.015226303599775,-0.092827998101711,0.101307898759842,-0.004726159851998,-0.024594832211733) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.022302854806185,-0.047985583543777,0.054079338908195,0.114992730319500,0.297249287366867,-0.195353463292122,0.170404508709908,-0.166488334536552,-0.002034635283053,-0.084742762148380,-0.075611636042595,0.114699028432369,-0.189862310886383,-0.166557475924492,-0.066182292997837,0.112309806048870) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.109100043773651,-0.074939757585526,-0.081949099898338,0.129186570644379,0.058136917650700,0.041408479213715,-0.035553403198719,0.008687946945429,0.057852294296026,0.032379209995270,0.049929499626160,-0.088449247181416,-0.038237128406763,0.099391110241413,-0.078910239040852,-0.024419764056802) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.071464478969574,-0.048107359558344,-0.199613571166992,0.101719073951244,-0.029049353674054,0.177671238780022,0.008155991323292,-0.151474863290787,-0.051043167710304,0.028086906298995,0.017385801300406,-0.054394319653511,0.036139786243439,0.071895778179169,0.056602049618959,-0.159261450171471) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.050653304904699,0.024756502360106,0.135844975709915,0.084197156131268,-0.002830429933965,0.055431440472603,-0.310341358184814,-0.657342672348022,-0.176399827003479,-0.052510514855385,0.207547307014465,-0.166373863816261,0.308810263872147,-0.290173172950745,0.173033475875854,-0.153530821204185) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.023282354697585,-0.196070477366447,0.176584109663963,-0.002721659373492,0.081263154745102,0.036017805337906,0.004408542532474,-0.182976186275482,-0.002010127529502,0.171482726931572,-0.083234660327435,0.175476416945457,0.062102291733027,0.142772570252419,-0.012473874725401,-0.067886888980865) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.090937927365303,0.054011423140764,0.149245083332062,-0.091547653079033,-0.053074780851603,-0.013119852170348,0.205241858959198,0.089642331004143,0.023067453876138,-0.058001741766930,0.012089050374925,0.068505719304085,-0.044880766421556,0.028882918879390,-0.217609256505966,0.050895046442747) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.042718756943941,0.040360134094954,0.006855899002403,0.068279795348644,-0.121806852519512,0.037688151001930,0.209961369633675,0.073054566979408,0.007286036852747,-0.030382387340069,-0.156904116272926,-0.108936794102192,-0.216626867651939,0.083106644451618,-0.446117937564850,0.041099037975073) * MODEL1_texOff(vec2(1,0));
res += mat4(0.055131223052740,0.072606049478054,0.009440953843296,0.123868957161903,-0.085192471742630,0.066417992115021,0.057543937116861,0.106556870043278,0.028009990230203,0.015142989344895,0.056134771555662,-0.076278634369373,-0.094590947031975,-0.048216026276350,-0.033941879868507,0.010957312770188) * MODEL1_texOff(vec2(1,1));
res += mat4(0.024518176913261,0.043417032808065,0.081788532435894,-0.017101760953665,-0.088073506951332,-0.071498624980450,-0.071328461170197,0.033735606819391,-0.012451834045351,-0.002436635782942,-0.038951847702265,-0.030487710610032,-0.103545531630516,-0.053512603044510,-0.223138779401779,0.080832086503506) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.122094184160233,0.145004391670227,-0.017176669090986,0.030155777931213,-0.043088238686323,0.177607849240303,0.125456273555756,-0.087633758783340,0.116014964878559,0.008881376124918,0.085890002548695,-0.176730468869209,-0.154957756400108,0.092702306807041,-0.033446125686169,-0.048586893826723) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.146873250603676,-0.025446271523833,-0.100596398115158,0.073389828205109,-0.219440147280693,-0.112238712608814,0.315744638442993,-0.033204935491085,0.032332777976990,-0.080455042421818,-0.006658845115453,0.007710884790868,-0.011828896589577,-0.079231917858124,-0.014518831856549,0.020615771412849) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.001056987443008,0.020542772486806,-0.064801581203938,-0.005508081987500,-0.100080683827400,-0.270065486431122,-0.041445374488831,-0.040737353265285,-0.185527548193932,-0.592654168605804,-0.016236333176494,-0.015402878634632,-0.032450251281261,-0.149691432714462,0.271175026893616,-0.096172764897346) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.047457814216614,0.067330099642277,-0.133694186806679,0.223057612776756,0.112325266003609,0.065771706402302,-0.277166962623596,0.064369268715382,-0.433291018009186,0.041567366570234,-0.171146109700203,0.239414349198341,0.104941040277481,-0.017711779102683,-0.181807041168213,0.096396453678608) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.065001010894775,0.042813729494810,0.156567886471748,-0.259845495223999,0.141784191131592,0.050713565200567,-0.143358945846558,0.160948514938354,-0.064762517809868,0.024974949657917,-0.080256685614586,-0.070266641676426,0.025096364319324,-0.076476171612740,-0.000923426530790,0.030875455588102) * MODEL2_texOff(vec2(0,1));
res += mat4(0.023602375760674,0.064357534050941,-0.048622265458107,0.003542048158124,-0.011418386362493,-0.011731959879398,-0.038569197058678,-0.251075297594070,0.056014742702246,-0.004564322996885,-0.111616447567940,-0.082587257027626,0.039157308638096,-0.090044170618057,0.027663251385093,0.138688728213310) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.070618845522404,0.220918387174606,0.059534098953009,-0.177961483597755,-0.088320672512054,-0.073298007249832,-0.038161311298609,-0.171953931450844,0.133053585886955,0.013774191960692,-0.080337837338448,-0.259603321552277,0.046111300587654,-0.099453926086426,-0.029303604736924,0.177363753318787) * MODEL2_texOff(vec2(1,0));
res += mat4(0.048206463456154,-0.033326569944620,-0.116785772144794,-0.054871935397387,-0.168064430356026,0.077968604862690,0.090038992464542,-0.234734445810318,0.077403835952282,0.010280860587955,0.069114692509174,0.026650650426745,-0.075515747070313,0.040353864431381,-0.057747378945351,0.116247199475765) * MODEL2_texOff(vec2(1,1));
res += mat4(0.079148426651955,0.106001965701580,0.086345650255680,0.023658422753215,-0.090095482766628,0.007677293382585,0.121538884937763,0.020991217344999,-0.125409811735153,-0.278297334909439,0.016887255012989,0.053446285426617,0.112335734069347,-0.033060390502214,-0.082739964127541,0.213829681277275) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.079566791653633,0.362431764602661,-0.037766065448523,0.119343176484108,0.060085568577051,0.043619584292173,0.127132788300514,0.143148660659790,-0.234618589282036,-0.014308346435428,-0.033647760748863,0.083073854446411,0.088990636169910,-0.001159256557003,-0.208903506398201,0.213471323251724) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.078251548111439,-0.188141360878944,0.015880798920989,0.077110119163990,0.116822727024555,-0.032069116830826,0.143103718757629,0.182333976030350,0.039221718907356,0.005792262498289,-0.045203424990177,-0.009372933767736,0.015005754306912,-0.011866515502334,-0.045679148286581,0.024621810764074) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.017493601888418,0.062356133013964,0.013953449204564,-0.030408203601837,0.094482943415642,0.025478091090918,-0.135991856455803,-0.101077526807785,-0.044809281826019,-0.003280975855887,-0.074821174144745,-0.131284713745117,-0.002043356420472,-0.012951044365764,0.029704041779041,-0.119422316551208) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.030213205143809,0.056989092379808,0.150573998689651,-0.117932543158531,0.076265983283520,-0.087573826313019,-0.010065532289445,-0.044173311442137,-0.429145604372025,-0.034329351037741,0.099652275443077,-0.206841021776199,0.109928779304028,0.006649647373706,0.101573571562767,-0.554077148437500) * MODEL3_texOff(vec2(0,0));
res += mat4(0.010789302177727,-0.074630260467529,-0.138925731182098,-0.094341762363911,0.162785917520523,0.132862985134125,-0.011021506972611,-0.022470494732261,-0.164850592613220,-0.162529662251472,0.032578866928816,-0.111298792064190,-0.041403144598007,0.058340515941381,0.034505784511566,-0.285403668880463) * MODEL3_texOff(vec2(0,1));
res += mat4(0.009911198168993,0.208800360560417,-0.044548720121384,0.054499473422766,0.056357666850090,0.246855095028877,-0.053983859717846,0.076790727674961,0.088242821395397,-0.167173519730568,-0.145692244172096,-0.055750288069248,0.051578976213932,0.216847926378250,0.046488869935274,-0.038136430084705) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.010693283751607,-0.069911077618599,-0.085230551660061,0.031764741986990,-0.071716658771038,-0.063226945698261,-0.002084660343826,-0.109284088015556,0.115208573639393,0.043978817760944,-0.298896729946136,-0.122939512133598,0.022561540827155,-0.137905582785606,-0.091737866401672,-0.027590043842793) * MODEL3_texOff(vec2(1,0));
res += mat4(0.032397247850895,0.007566552609205,-0.105638116598129,-0.076193138957024,-0.029695700854063,0.066586196422577,0.042997095733881,0.082401208579540,0.070064239203930,0.035979978740215,-0.102278612554073,-0.141049936413765,-0.003849572502077,0.004007144831121,-0.043819025158882,-0.037261784076691) * MODEL3_texOff(vec2(1,1));
res += mat4(0.016013778746128,-0.013000627048314,-0.002250687684864,-0.055636532604694,-0.162954166531563,-0.197836995124817,-0.000837717554532,0.059191338717937,0.250799506902695,0.083018131554127,0.107979342341423,-0.058569103479385,-0.042951695621014,-0.169551521539688,-0.046866338700056,-0.022656880319118) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.073852889239788,-0.046251110732555,-0.006207991857082,-0.061444722115993,-0.336412668228149,0.006235491950065,-0.032688822597265,0.070545241236687,0.232238769531250,-0.018935885280371,0.129637748003006,0.006451715249568,0.022544736042619,0.098738931119442,0.099902071058750,-0.011675172485411) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.050318408757448,-0.080072343349457,-0.068538233637810,0.020670738071203,-0.098213776946068,0.091375611722469,-0.042000740766525,0.066527239978313,0.141488462686539,-0.097418509423733,-0.017869498580694,0.066588237881660,-0.085220217704773,-0.033016297966242,-0.015491374768317,-0.069020472466946) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.020160064101219,0.084130935370922,-0.082501612603664,0.058651532977819,-0.032398711889982,-0.089588493108749,-0.061810903251171,-0.014766120351851,-0.270722925662994,-0.193705394864082,0.140440866351128,0.098657600581646,0.085113078355789,0.130016162991524,-0.096257217228413,0.040068510919809) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.154288008809090,0.170660227537155,-0.024711983278394,-0.015274300239980,0.067381635308266,0.105194292962551,-0.174832686781883,-0.060714662075043,-0.277617365121841,0.186059758067131,0.042103879153728,0.423864483833313,0.280506670475006,-0.076129734516144,-0.282123029232025,0.158914282917976) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.054477557539940,-0.206845939159393,0.066518910229206,-0.090467594563961,0.043853364884853,0.011439928784966,0.085769511759281,0.014773665927351,-0.021223513409495,-0.102864064276218,0.155498296022415,0.081721536815166,0.101292878389359,-0.063945785164833,-0.074522376060486,-0.173677742481232) * MODEL4_texOff(vec2(0,1));
res += mat4(0.014460087753832,-0.048852443695068,-0.073624432086945,-0.012767146341503,0.161764547228813,0.025604235008359,-0.259108990430832,0.092862680554390,0.120821163058281,-0.007133010774851,-0.015909137204289,0.064081817865372,-0.016229838132858,-0.026680944487453,0.101768597960472,-0.031317669898272) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.154559791088104,0.017192473635077,0.048447187989950,-0.042396586388350,0.229875251650810,-0.062505103647709,-0.231975287199020,0.250008672475815,0.134490683674812,-0.066070318222046,-0.066108539700508,0.267285853624344,0.051636248826981,-0.012912931852043,0.390245884656906,0.206436544656754) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.035426333546638,-0.128698959946632,-0.052878983318806,-0.071282878518105,0.093453168869019,0.047905042767525,-0.060872651636600,0.095130153000355,0.056656341999769,0.052963621914387,0.056070994585752,0.165190115571022,0.011011725291610,0.003776391269639,0.109019860625267,-0.118764519691467) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.235940784215927,-0.157096207141876,0.241122007369995,0.012390448711812,-0.032556645572186,-0.038386609405279,0.084489651024342,-0.150195404887199,-0.022477397695184,-0.039848592132330,0.062437351793051,0.049245551228523,-0.044440057128668,-0.028867825865746,0.037663195282221,-0.060767538845539) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.039980534464121,-0.113469555974007,0.244586065411568,-0.210747107863426,0.040773153305054,0.105933137238026,0.142243608832359,-0.037287160754204,-0.013807922601700,-0.171541646122932,0.087347768247128,0.023216011002660,0.063670128583908,-0.053571581840515,0.112023793160915,-0.088226094841957) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.072004072368145,0.144304156303406,0.019700523465872,0.131887912750244,0.023299043998122,0.097438238561153,0.113003700971603,-0.119599290192127,0.115424245595932,-0.152441993355751,-0.082200787961483,0.080811664462090,-0.035102944821119,0.056604955345392,0.017955424264073,-0.021802298724651) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.164379581809044,-0.154347270727158,-0.070058152079582,0.155117437243462,0.008547184057534,-0.077968396246433,0.075225800275803,0.068072944879532,0.153414338827133,0.266399025917053,-0.034541215747595,0.073061309754848,0.105374589562416,0.114714123308659,-0.097101271152496,-0.020916193723679) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.064867891371250,-0.003634063061327,-0.210036531090736,0.274023592472076,0.306679099798203,-0.084948942065239,-0.018294187262654,0.400853693485260,0.144974663853645,-0.187523484230042,-0.065930701792240,0.160833150148392,0.204848855733871,0.022546041756868,-0.401955693960190,0.222457855939865) * MODEL5_texOff(vec2(0,0));
res += mat4(0.136590301990509,0.066489286720753,-0.133146822452545,0.133455917239189,0.011534457094967,0.130515828728676,-0.075216300785542,0.115843877196312,-0.196810960769653,-0.242321178317070,0.217040881514549,-0.004989938344806,0.060658860951662,-0.021135896444321,-0.184870690107346,-0.001916508073919) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.013055267743766,0.059641908854246,0.095200285315514,-0.097787946462631,-0.083728328347206,0.014424799010158,-0.155379280447960,-0.030251955613494,0.071563638746738,0.090777948498726,0.130781859159470,0.062487181276083,-0.037153299897909,-0.240142792463303,0.149461731314659,0.039670981466770) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.125450789928436,0.002268084790558,0.030832277610898,-0.169641882181168,-0.216181516647339,0.079329729080200,-0.136711493134499,0.193749606609344,0.026302684098482,-0.125967949628830,0.131772711873055,-0.021436361595988,0.031022129580379,0.159812465310097,0.342571616172791,0.000390990811866) * MODEL5_texOff(vec2(1,0));
res += mat4(0.042779617011547,0.014322751201689,-0.106442615389824,-0.305196851491928,-0.093915037810802,-0.020247563719749,0.013367915526032,-0.041010826826096,0.072627983987331,-0.075120188295841,-0.198638916015625,-0.017355674877763,0.052493974566460,-0.081328220665455,0.251654475927353,-0.159697785973549) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.081613741815090,0.070178404450417,0.003144386457279,-0.011897757649422,0.030256055295467,-0.016444368287921,-0.108997896313667,-0.027046455070376,0.134219914674759,-0.102748773992062,0.189411923289299,0.045085009187460,-0.040109589695930,0.133315041661263,0.027608197182417,-0.053210429847240) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.132842376828194,-0.157349362969398,0.018796177580953,-0.038729947060347,0.074774228036404,0.056656017899513,-0.067133039236069,-0.050801664590836,0.112244419753551,0.075422823429108,0.168200671672821,-0.156101435422897,0.054268572479486,0.016362354159355,0.063175439834595,-0.132701978087425) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.087997898459435,0.052662480622530,-0.122587211430073,0.009256484918296,0.213362380862236,-0.028163010254502,-0.020560832694173,0.006258111912757,0.195524871349335,-0.095522545278072,0.013312703929842,0.134484127163887,-0.019536480307579,0.162290170788765,-0.144875928759575,0.046579901129007) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.158804133534431,-0.124819509685040,-0.035069890320301,0.038080733269453,-0.072496250271797,-0.088144078850746,0.104388780891895,-0.060263723134995,-0.110238663852215,-0.211972117424011,0.155061781406403,0.119960032403469,-0.009097840636969,0.217453688383102,-0.093409940600395,0.045856319367886) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.177604526281357,0.126985430717468,0.250707209110260,-0.067013561725616,-0.041800256818533,0.135998472571373,0.193293213844299,0.003402769565582,-0.019334446638823,0.071984641253948,-0.147655665874481,0.196514487266541,-0.005827451590449,0.064601078629494,-0.152924373745918,0.096489369869232) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.007970990613103,-0.104457475244999,0.114367127418518,0.026613803580403,-0.100137487053871,-0.111143112182617,0.125756800174713,0.084311977028847,-0.073677219450474,-0.023310031741858,0.256045877933502,0.271063685417175,-0.161066830158234,0.037556506693363,0.105075716972351,-0.010007070377469) * MODEL6_texOff(vec2(0,1));
res += mat4(0.003878415562212,-0.104525558650494,-0.109519749879837,-0.038788821548223,0.001449921866879,0.079936139285564,-0.220461994409561,0.042156837880611,0.057930521667004,-0.083862543106079,-0.020207215100527,0.092835441231728,-0.027038052678108,0.120324373245239,0.039998549968004,-0.073566257953644) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.060557179152966,-0.007366530131549,-0.202002614736557,-0.083531476557255,-0.031817339360714,0.072035260498524,-0.238009378314018,-0.054203987121582,-0.015992986038327,0.026138219982386,-0.116780139505863,0.187035709619522,0.000642048253212,-0.060195118188858,-0.049684379249811,-0.023184433579445) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.017252324149013,0.048656746745110,-0.013895473442972,-0.195887282490730,0.033830020576715,0.016524171456695,-0.010880240239203,-0.178953185677528,0.002295843092725,0.012737233191729,-0.017593208700418,-0.111410371959209,0.057723782956600,-0.034620560705662,-0.000340751721524,0.033444676548243) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.005644386168569,-0.022850543260574,0.059603624045849,0.022288601845503) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_3x_Photo] sub-pixel convolution 1

vec4 hook()
{
vec3 res = vec3(0.000650088593829,0.000588704540860,0.000568472896703);
res += mat4x3(0.005673803854734,-0.002433120273054,-0.004321200307459,-0.007732851430774,0.005568158812821,0.001904525328428,0.007960165850818,0.005172566510737,-0.004316755104810,0.012558154761791,-0.000870613381267,-0.002755058696494) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(-0.028102884069085,-0.003477019025013,0.013071572408080,0.006500045303255,-0.001145227928646,-0.019592998549342,0.017263354733586,0.006731532979757,-0.023959137499332,-0.013177353888750,-0.024130459874868,0.007875753566623) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(0.001896695583127,0.014804408885539,-0.004121194127947,0.001080594141968,0.001572801033035,0.002246303483844,-0.004920473787934,-0.004013566300273,-0.001188729191199,-0.001412845216691,0.004504777025431,0.012237742543221) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(0.003177537582815,-0.006783205084503,-0.006093883421272,-0.010594079270959,-0.030613029375672,-0.007747427560389,-0.019866285845637,0.025849903002381,0.002894765231758,-0.012939256615937,0.015075378119946,0.007669139653444) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.001934315543622,0.011985967867076,0.012140916660428,-0.008209535852075,0.031475976109505,0.045498773455620,0.012888886034489,0.021302035078406,-0.032555565237999,0.040153108537197,0.005148496944457,-0.046407613903284) * MODEL7_texOff(vec2(0,0));
res += mat4x3(0.007643517106771,-0.000052500465245,-0.010698773898184,0.000985645456240,-0.004168954212219,-0.011360228992999,-0.004021171946079,-0.003384572919458,0.003063375828788,0.002547900890931,-0.005906191654503,0.002654810901731) * MODEL7_texOff(vec2(0,1));
res += mat4x3(0.000296494312352,0.002428623149171,0.001955781364813,0.007736600469798,0.008490846492350,0.004039448220283,-0.003652200801298,0.001642479561269,0.002428703941405,-0.001373252598569,0.000165782636032,0.000375100848032) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(-0.006440037395805,-0.004864894319326,-0.001430697971955,-0.006552590057254,-0.007342279888690,0.000359894795110,0.003636823734269,0.002208075951785,-0.005910233128816,0.002341488143429,0.005641212221235,0.002198614180088) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.001122678630054,0.001384292496368,-0.003088279161602,-0.001882296404801,-0.002194187836722,-0.002379589248449,-0.002086669439450,-0.002986293286085,-0.002822446171194,-0.003543026978150,-0.002622510306537,0.001822285237722) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.002575132297352,0.008772587403655,0.006363028194755,-0.012732887640595,-0.000434898654930,0.002013023244217,-0.015571463853121,-0.007011216133833,-0.000032889591239,0.007710307370871,-0.000231683370657,-0.002810124307871) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(0.004614079836756,-0.006178617943078,-0.005492419004440,-0.014394905418158,0.013522981666028,0.007967812009156,0.013274138793349,-0.002184505807236,-0.016847526654601,0.000611773924902,0.006586244795471,0.012874847277999) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.005367186386138,0.011182371526957,0.012882302515209,0.003890763269737,0.001083648996428,-0.009952439926565,0.000934055948164,0.006740334909409,0.015146179124713,0.002768853679299,0.001915630884469,-0.001353132072836) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(0.000561394903343,0.011753506027162,0.006568770390004,-0.006147204898298,-0.015937298536301,0.003029447048903,-0.017534332349896,-0.002926239045337,0.004194790031761,0.006272370461375,-0.002253814600408,-0.004103531595320) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.026196984574199,-0.036809623241425,-0.021680092439055,-0.027784733101726,-0.018943769857287,0.046857349574566,-0.010688927955925,-0.023282121866941,-0.029811158776283,-0.022013083100319,-0.011812595650554,0.004638472571969) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.009338173083961,0.010571428574622,-0.002376995980740,0.005730354227126,0.007793711498380,0.006920622196048,-0.000733411579859,0.000625110056717,-0.001533124013804,0.004757388960570,-0.000460401788587,-0.014896750450134) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.004214967601001,0.002722030971199,0.000401611439884,0.005164490081370,0.000318820006214,-0.003338384907693,0.003514752257615,0.003543162019923,0.002536158775911,0.002698658267036,0.001805134117603,0.000717192655429) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.009421580471098,0.007311757188290,0.005580815952271,-0.003497971920297,-0.002128861146048,0.002604806330055,0.005238715093583,0.005283444188535,0.003861609147862,0.003779314924031,0.003857246600091,0.004092339891940) * MODEL8_texOff(vec2(1,0));
res += mat4x3(0.001568310311995,0.004469794221222,0.008219592273235,0.000415445800172,0.000832175021060,-0.000011678295778,-0.001357124070637,-0.000991175184026,0.002001527464017,0.000215428444790,0.001280839904211,0.002826720708981) * MODEL8_texOff(vec2(1,1));
res += mat4x3(0.011549314484000,0.004753845743835,0.004934789147228,-0.001255354261957,0.000820933084469,-0.003901329124346,0.007366065401584,0.003158565843478,-0.008937070146203,0.001701733563095,-0.004574766382575,-0.003120323177427) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.033482044935226,0.043638639152050,0.030357193201780,0.008367199450731,0.018251447007060,-0.008132262155414,0.000304893765133,-0.003855283837765,-0.006456904578954,-0.004344160668552,0.007702452596277,0.006581515539438) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.009215721860528,-0.010621463879943,0.003222536528483,0.003255045507103,-0.001603237120435,-0.016085689887404,-0.000659573415760,-0.000901131425053,0.000255309307249,0.018400369212031,0.000678218435496,-0.024572405964136) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.002957619726658,-0.006236099172384,-0.001939884037711,0.005073576234281,0.003075589891523,-0.002626837231219,0.042239062488079,-0.021072324365377,-0.014345075003803,0.002328966278583,-0.002733418019488,-0.002789361868054) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(0.024812925606966,0.024091158062220,0.011227877810597,0.042628630995750,-0.028804650530219,-0.032219994813204,-0.005238999146968,-0.028513967990875,0.021353488788009,-0.016365975141525,0.009622531943023,0.007723431568593) * MODEL9_texOff(vec2(0,0));
res += mat4x3(0.005158442072570,0.009742516092956,0.018015937879682,-0.009633697569370,-0.014853837899864,0.032016657292843,0.009347788989544,0.007413060404360,-0.003958456683904,0.007996836677194,0.017364701256156,-0.021490918472409) * MODEL9_texOff(vec2(0,1));
res += mat4x3(0.001134982914664,0.000449633196695,-0.000460100534838,-0.001020014169626,0.004548261407763,0.006192107684910,-0.001398499472998,-0.004338989499956,-0.003669591154903,-0.001356839900836,-0.000216898508370,-0.000618529564235) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.003932381980121,-0.003773004980758,-0.001537083764561,-0.010187854059041,-0.007460801862180,0.002110075438395,-0.005972831510007,0.002271544188261,0.007423076312989,0.002990034641698,0.001244222745299,-0.000288464594632) * MODEL9_texOff(vec2(1,0));
res += mat4x3(-0.003036574227735,-0.003685877425596,-0.004582180175930,-0.000754791311920,0.001505114370957,0.003247624495998,0.003156379796565,0.001255346112885,-0.002704987069592,0.003146233968437,0.002717929892242,-0.000207343124202) * MODEL9_texOff(vec2(1,1));
res += mat4x3(-0.004037484060973,-0.001187668764032,0.000174689208507,-0.001422875677235,-0.001354086678475,-0.002464832505211,0.008035579696298,0.015408196486533,-0.002216835506260,0.015976727008820,-0.004138594493270,-0.001957511063665) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.000461868155980,0.000039738097257,-0.003271696390584,-0.004608399234712,-0.006203133612871,-0.003108047880232,0.027804994955659,0.009811398573220,-0.046907067298889,-0.022658377885818,-0.006171949207783,0.029997611418366) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.000500595138874,-0.001684148795903,0.000025741723221,-0.000429129082477,0.000082289392594,-0.001568989595398,-0.006071999203414,-0.006250551436096,-0.003591626416892,-0.001875415444374,-0.000082460668636,-0.001324957702309) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(-0.006893745157868,-0.001112640020438,0.001920564682223,0.029369821771979,0.016522685065866,0.003062087576836,0.018765818327665,-0.014512642286718,-0.005706649739295,-0.034307166934013,-0.009718259796500,0.004087741952389) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(0.002587653463706,-0.005346848163754,-0.014373892918229,0.005689121317118,0.017922274768353,0.031800199300051,-0.002157945418730,-0.022434609010816,0.023285707458854,0.009158216416836,0.047534983605146,0.002086463849992) * MODEL10_texOff(vec2(0,0));
res += mat4x3(-0.001749411923811,0.001005561323836,0.005252426490188,0.001476853736676,0.000281819433440,-0.002301097149029,-0.005316576454788,-0.002940001199022,0.008722267113626,-0.000809253891930,-0.007306095212698,-0.018105478957295) * MODEL10_texOff(vec2(0,1));
res += mat4x3(0.007405050564557,0.004745738580823,0.003009606851265,-0.007950456812978,0.000107578911411,0.004208180587739,0.003445505164564,0.001088599790819,0.001344156218693,0.001054321182892,0.002002340275794,0.002013222780079) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(0.021539349108934,0.020267106592655,0.013618060387671,-0.010349419899285,-0.019409954547882,-0.018879247829318,0.000109137734398,-0.005317825824022,-0.001041780342348,-0.002116768853739,-0.006297817919403,-0.006573399063200) * MODEL10_texOff(vec2(1,0));
res += mat4x3(0.000351774826413,0.005792993586510,0.014418591745198,0.001719007035717,0.000564900343306,-0.002049065195024,0.000804077717476,0.000013244613001,-0.001272987690754,0.005074809771031,0.006434913259000,0.000571909942664) * MODEL10_texOff(vec2(1,1));
res += mat4x3(-0.014531483873725,-0.001692039542831,0.005127337295562,-0.002810799749568,-0.008765760809183,-0.003062341595069,0.013172449544072,0.005132874473929,0.003808142384514,-0.000129845022457,-0.002871217206120,-0.000144436169649) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(0.003392355749384,-0.011988358572125,-0.022402254864573,-0.011311553418636,-0.023720774799585,0.025794031098485,-0.039816778153181,-0.011343521997333,0.013061549514532,-0.005873949266970,-0.008873080834746,0.014426693320274) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(0.001605514902622,0.004496382083744,0.008094867691398,-0.006257196888328,-0.000046210941946,0.019409779459238,0.011880513280630,-0.004711489658803,-0.030768187716603,-0.003681459464133,-0.000073423441791,0.013492909260094) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(0.023069212213159,0.008795008063316,0.000924399122596,0.021152373403311,-0.001958572538570,-0.000025570305297,-0.004056364297867,-0.004299724940211,-0.002971501089633,-0.016352146863937,0.000798029941507,-0.000826857227366) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.011928943917155,0.010301966220140,0.028548331931233,0.035792499780655,-0.026423180475831,-0.014219582080841,0.003863069228828,-0.010896489024162,-0.009199201129377,-0.056890178471804,0.033927764743567,0.029773589223623) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.002793647581711,-0.002996953902766,-0.013243873603642,-0.001699089305475,-0.008844148367643,-0.001480135833845,0.015609863214195,0.030276414006948,0.024341532960534,-0.000061560771428,0.016064599156380,-0.008140702731907) * MODEL11_texOff(vec2(0,1));
res += mat4x3(-0.007115317974240,-0.008417525328696,-0.005726061761379,-0.002440394833684,-0.002732329769060,0.001057873363607,0.005243747960776,0.001554301939905,-0.000686830026098,-0.002684697275981,0.000027424466680,0.001996934413910) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(0.000981612247415,-0.004056007135659,-0.007200320716947,-0.001414536964148,-0.004489622544497,0.007283681537956,-0.001796935801394,0.003399384440854,0.005885518621653,0.003051133127883,0.005119048524648,-0.004259430803359) * MODEL11_texOff(vec2(1,0));
res += mat4x3(0.000465078337584,0.003670915029943,0.005095385480672,0.001125760143623,0.001328444108367,0.003976132720709,-0.007450583390892,-0.011109969578683,-0.007638570852578,0.005961286835372,0.001079209614545,-0.007101273629814) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.006599459331483,0.002028612652794,-0.001480497419834,-0.004109060857445,0.002894225297496,0.002776323817670,-0.013735830783844,-0.002955635078251,-0.002103970153257,0.025689126923680,0.009998062625527,0.002562857232988) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(0.001281299279071,0.004067417699844,0.009270114824176,0.001574396737851,-0.005199456587434,-0.004118088632822,-0.035507064312696,-0.044012416154146,-0.031390197575092,0.032695561647415,0.046973340213299,0.043887667357922) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(0.000665078754537,0.001559757394716,0.000455568137113,-0.005856321193278,-0.000518978631590,0.007203874178231,-0.002438616706058,-0.008905583992600,-0.020627286285162,0.002404672326520,0.002674240618944,0.012304130010307) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.008668980561197,-0.002799905138090,-0.003110269783065,-0.005675862077624,0.006842561531812,0.007796796970069,0.007146995514631,0.001961689908057,-0.000796260486823,-0.000851530756336,-0.001941191265360,-0.002207333222032) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(-0.040246270596981,-0.036224205046892,-0.020782014355063,0.036679711192846,-0.003935631364584,-0.014269426465034,0.008661793544888,0.011882061138749,0.013089344836771,-0.008809632621706,-0.000135040667374,0.002218480687588) * MODEL12_texOff(vec2(0,0));
res += mat4x3(-0.003596566850320,-0.010776640847325,-0.024783702567220,-0.021470608189702,-0.017501581460238,0.026274265721440,0.002433979883790,0.003119197208434,0.005258066114038,-0.002593233715743,-0.007360723800957,-0.010397656820714) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.004846076481044,-0.001927619450726,-0.000920162477996,-0.001313066226430,0.000485312513774,0.000554179889150,-0.002111889887601,0.000081408514234,0.000341983628459,0.000390844914364,-0.000549773685634,0.000056054388551) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(-0.014445439912379,-0.016487663611770,-0.012171265669167,-0.003805984044448,-0.004304178059101,-0.000688636966515,-0.003815415082499,-0.005061476025730,-0.003687693970278,0.003293290734291,0.003743259934708,0.002845732029527) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.001142522320151,0.000323166896123,-0.005654946435243,0.000680098775774,0.000608225993346,-0.000409889325965,-0.000811104604509,-0.000838779844344,-0.001809419482015,0.002745068166405,0.003083187388256,0.002637218916789) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_Medium_3x_Photo] sub-pixel convolution 2

vec4 hook()
{
vec3 res = vec3(0.000203006522497,0.000112595167593,0.000177205933142);
res += mat4x3(0.001785228261724,-0.000598483544309,-0.002225025324151,-0.008520509116352,-0.001285998150706,0.000904896762222,0.002697806106880,0.003598989453167,0.000815841660369,0.000679254531860,-0.003021645359695,-0.003374269697815) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(-0.007334581576288,-0.001985881477594,0.006328797433525,0.006142670288682,0.009274407289922,-0.000008962961147,0.011077658273280,-0.000277091749012,-0.012741304934025,0.009728917852044,0.001067087170668,-0.005763347726315) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(-0.004042239394039,0.003905006684363,0.006806722842157,-0.005190650466830,-0.004401568323374,0.001978492829949,-0.003004175843671,-0.000823255337309,0.002771865809336,-0.001332730171271,-0.004047576803714,0.001772158662789) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(0.007240336388350,-0.007601158693433,-0.007568560540676,0.038905952125788,-0.013136297464371,-0.016553120687604,-0.008422575891018,0.026511654257774,-0.005262830760330,-0.029428020119667,0.003507401561365,0.009934228844941) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.021348256617785,0.012954953126609,0.019906638190150,-0.029236847534776,-0.025782810524106,0.040537901222706,0.015521259047091,0.025789111852646,-0.045708838850260,-0.006728482432663,0.050291813910007,-0.000669533619657) * MODEL7_texOff(vec2(0,0));
res += mat4x3(0.014201819896698,0.007893433794379,-0.023018600419164,0.006196806207299,0.005712552927434,-0.003328974591568,-0.005166421178728,-0.003844480263069,-0.001439320505597,0.012616883032024,0.004974727518857,-0.031343627721071) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.000342082523275,0.000889196351636,0.000921424361877,0.003060311079025,0.012807753868401,0.006665206514299,-0.009062752127647,0.005044815130532,0.006594185251743,-0.001860934658907,-0.002684241859242,0.000504405063111) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(-0.004305740818381,-0.002076561795548,0.000159503048053,0.004122850019485,-0.012323196046054,-0.015367557294667,0.006283492315561,0.005209564696997,-0.005156306549907,-0.003842589911073,-0.000240043489612,0.006004407536238) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.000013051112546,0.000233767597820,-0.001889591920190,-0.000608962029219,-0.000784092815593,0.004121528007090,-0.002475421177223,-0.003741809399799,-0.001701032277197,-0.002196390414611,-0.004439005628228,0.000326728855725) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.003949789796025,0.003625425044447,0.001414319034666,-0.006425243336707,-0.002456224523485,0.003334841690958,-0.005675089079887,-0.001864743651822,0.000532762380317,-0.001591798267327,-0.000269429321634,0.000384019309422) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(0.009329508990049,0.004966098349541,0.004029267467558,0.001346721546724,0.004645182285458,0.002041161293164,-0.019623760133982,-0.019737040624022,-0.014904258772731,-0.004402990918607,-0.004856531973928,-0.001858212053776) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.001633464242332,0.005556286312640,0.009861176833510,0.003504969645292,-0.002308760304004,-0.003658140776679,0.002527744509280,-0.002463971031830,-0.011484836228192,0.000172730040504,-0.000334464566549,-0.002425549551845) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.006376496516168,0.011683998629451,0.007639126852155,-0.019878422841430,-0.008600725792348,0.003825249616057,0.005104413256049,0.002651715418324,-0.001177806057967,0.015972374007106,0.000693553418387,-0.004290857817978) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.036063864827156,-0.051886897534132,-0.036709226667881,-0.043433703482151,-0.000276748032775,0.049271430820227,-0.032922446727753,-0.026056868955493,-0.004248836077750,-0.013720910996199,0.002545451745391,0.020878450945020) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.007984279654920,0.009075884707272,-0.006270484533161,0.004513905849308,0.007731657009572,-0.000300997315207,-0.001522309961729,-0.005774858873338,-0.020381214097142,0.006417448166758,0.002995341783389,-0.011155581101775) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.007513586897403,0.005291760899127,0.001512449351139,0.011507843621075,-0.004404809325933,-0.005965763237327,0.003667405573651,0.001801226753742,-0.001110263867304,0.000574590463657,-0.000268138537649,-0.001229182700627) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.009791282936931,0.006347316317260,0.007446063216776,-0.001546702580526,-0.007527236361057,0.008638542145491,0.005486936308444,0.004557207692415,0.004756797570735,-0.003082038369030,-0.003598614130169,-0.001039901399054) * MODEL8_texOff(vec2(1,0));
res += mat4x3(0.002625453053042,0.007097497582436,0.011520480737090,0.001668593264185,0.001694018486887,0.000275095633697,-0.002123805228621,-0.000774083251599,0.003248902969062,-0.000702192599420,-0.000730437517632,-0.001249593566172) * MODEL8_texOff(vec2(1,1));
res += mat4x3(-0.003948472905904,0.004476362373680,0.003470842959359,0.002286838134751,0.000285147485556,0.001112382858992,0.006219432223588,0.001531102810986,-0.005626387428492,0.001007756800391,-0.002174760447815,-0.000783546827734) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.021175520494580,-0.003190028714016,-0.011657245457172,0.004206491168588,-0.004365908447653,-0.004061534535140,0.000881535757799,-0.000818113039713,0.001212295028381,-0.002009448595345,0.002370483241975,0.001249462715350) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.001808807486668,0.013214051723480,0.028160436078906,0.005214252974838,0.003764085937291,0.000505640404299,0.000831915589515,-0.000062635517679,0.001654653227888,0.006716920994222,-0.000764763914049,-0.010449153371155) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.005730245262384,0.000448530714493,0.001729772775434,0.015486590564251,-0.006044161971658,-0.004249500110745,0.035015948116779,-0.010474579408765,-0.019745480269194,0.004000212997198,-0.004204602912068,-0.003996991552413) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.000017598029444,-0.011401493102312,-0.014428671449423,-0.031306032091379,-0.026744857430458,0.027027735486627,0.002493756124750,-0.016113506630063,0.000523206836078,-0.015742469578981,0.016485972329974,0.010728588327765) * MODEL9_texOff(vec2(0,0));
res += mat4x3(0.003532493021339,0.006997026968747,0.010478970594704,-0.006577729247510,0.010245683602989,0.019373230636120,0.006801173556596,0.006295505911112,-0.005546492524445,0.022940905764699,0.021720474585891,-0.040554199367762) * MODEL9_texOff(vec2(0,1));
res += mat4x3(0.003333661239594,0.001596952672116,-0.000538655964192,-0.003485260531306,0.003912055864930,0.004041082691401,0.005514901131392,-0.010700606741011,-0.003569426247850,-0.000240477005718,0.000212109662243,-0.000839688116685) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.003742818953469,-0.002379604382440,0.000521033711266,-0.012482751160860,0.012237057089806,0.006997399497777,-0.013546952977777,-0.006174860987812,0.021639969199896,0.000841657631099,-0.000077337848779,0.000924981257413) * MODEL9_texOff(vec2(1,0));
res += mat4x3(-0.002704665064812,-0.002880280138925,-0.004602500703186,0.001675565028563,0.004384201951325,-0.010895594954491,0.004186811391264,0.003196288598701,-0.001943910727277,-0.000392170913983,0.000719503324945,0.001945297699422) * MODEL9_texOff(vec2(1,1));
res += mat4x3(-0.002363123465329,-0.001590202562511,-0.000629436050076,0.004577361978590,0.003842535428703,0.002851546043530,-0.006892307661474,0.009685888886452,0.002658674726263,-0.006631191819906,-0.007450554985553,-0.007011913694441) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(-0.003152502467856,-0.004381482023746,-0.004456469323486,0.006175595801324,0.005320075433701,0.004272596444935,0.010340835899115,0.013921938836575,-0.025306461378932,-0.000174226428499,0.012026284821332,0.007653206121176) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(0.001254706992768,0.001428577699699,-0.000265529437456,-0.001058444380760,0.001059648115188,0.002769526327029,-0.003982584923506,-0.003870550775900,-0.001116177882068,-0.000828273827210,0.001420096494257,0.000004167629868) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(0.012508561834693,0.003774673212320,-0.000034212360333,-0.014012942090631,-0.002183718373999,0.002049996051937,0.035053521394730,-0.012268649414182,-0.009012644179165,-0.015812110155821,0.015471976250410,0.004991469904780) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(0.026624329388142,0.031094916164875,0.024607980623841,-0.010657276026905,-0.018429227173328,-0.021469116210938,0.021286081522703,-0.033624939620495,0.001017132773995,0.034179873764515,-0.002653290750459,-0.050486020743847) * MODEL10_texOff(vec2(0,0));
res += mat4x3(-0.000996908638626,0.002977053634822,0.013409832492471,0.002547869691625,0.002011589705944,-0.002946770284325,-0.008342931978405,-0.009551067836583,0.012079950422049,-0.003990330267698,-0.008212506771088,0.006776141468436) * MODEL10_texOff(vec2(0,1));
res += mat4x3(0.008881102316082,-0.000638513593003,-0.002779921982437,-0.021449333056808,-0.010732226073742,-0.001414707396179,0.002571251010522,-0.000075467854913,-0.000909751281142,0.011798301711679,0.004676269367337,0.001601113006473) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(0.019682591781020,0.027610914781690,0.022265264764428,-0.002068256260827,-0.013097579590976,-0.024759508669376,-0.000303184409859,-0.001992932287976,-0.000021524123440,-0.006672480143607,-0.013796047307551,0.001983279362321) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.001577916205861,0.000067424502049,0.008208387531340,-0.000548131938558,-0.000722975179087,0.000198397814529,0.003711212659255,0.001432449440472,-0.004381597042084,0.006115064490587,0.006587299983948,0.001174615463242) * MODEL10_texOff(vec2(1,1));
res += mat4x3(0.002386399079114,0.003855220507830,0.003268524771556,-0.001150968484581,0.000691474182531,-0.000661004800349,-0.006198370829225,-0.002572597004473,-0.002824412658811,0.001045455341227,0.000789543613791,-0.000500720459968) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(0.003151968121529,0.000980480224825,-0.000178272108315,-0.011206991970539,-0.002046088455245,0.011465024203062,0.003872730070725,-0.013086239807308,-0.014405437745154,-0.003875321708620,-0.001147092785686,0.006272840313613) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.005076188594103,-0.005133450962603,-0.000077391377999,-0.002338209189475,0.004262169823050,0.006105019710958,0.004527941346169,0.014989495277405,0.018787255510688,-0.003295177128166,0.000524819304701,0.003389742458239) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(-0.004199745599180,-0.004942873958498,-0.000923529965803,0.025088127702475,-0.013006479479373,0.000982435420156,-0.004620254971087,-0.001255054958165,-0.002928466768935,-0.013042265549302,-0.004977583419532,-0.001120733912103) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(0.003958034329116,0.012212581001222,0.005134304519743,0.040119878947735,-0.050162073224783,0.011493573896587,0.026134964078665,0.001076222048141,-0.009202318266034,-0.049375664442778,0.005067064892501,0.038446851074696) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.002684727078304,0.000191064464161,-0.003647972829640,-0.001898102811538,-0.015046911314130,0.013980884104967,-0.010876679793000,0.004053385462612,0.026935489848256,-0.002723210491240,0.010485808365047,0.015649149194360) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.000643617648166,-0.002624237677082,-0.002448696410283,-0.002464363584295,-0.000451127241831,0.000058763216657,0.004456457216293,0.002522496972233,-0.000208673503948,-0.002758474554867,0.002143800957128,0.000964181672316) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(-0.005284261424094,-0.007199817337096,-0.002094835974276,-0.002063413849100,-0.004380774684250,0.001552521483973,-0.001503043691628,0.002513972809538,0.003544993465766,-0.006283755879849,0.016134953126311,-0.005556317046285) * MODEL11_texOff(vec2(1,0));
res += mat4x3(0.001454414334148,0.002871392527595,0.001123711816035,-0.000938369543292,0.000654527859297,-0.000024894336093,-0.004156352486461,-0.008134543895721,-0.008071693591774,0.008399646729231,0.008464050479233,-0.015357766300440) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.000154382971232,0.000658122356981,-0.000474314321764,-0.000105717059341,0.000904247513972,0.000470714468975,0.000746848061681,0.001174495439045,0.004797240719199,-0.003297732444480,0.000925301981624,0.002252994105220) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.004574604332447,-0.002845831913874,0.000263458001427,0.003943322226405,0.001320415409282,0.000340043334290,0.030523730441928,0.028142485767603,0.013606092892587,-0.023199234157801,-0.022647393867373,-0.014215225353837) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.000429597945185,-0.002606768161058,-0.004674825817347,-0.004943360574543,-0.002291931305081,0.003801785875112,0.000285257905489,0.002073749899864,0.013989117927849,0.001874615671113,-0.002669527195394,-0.012183079496026) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.007942582480609,-0.002894422039390,-0.000017135063899,-0.006812730804086,0.007485987152904,0.008667812682688,0.005295475013554,-0.001727101742290,-0.002041212283075,-0.008934778161347,-0.000011546234418,0.002863331465051) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(-0.006427877582610,-0.009938338771462,-0.013665379025042,0.021200150251389,-0.013895817101002,-0.011699648573995,0.012728698551655,0.021054672077298,0.016652341932058,-0.015645707026124,-0.017122620716691,-0.015881609171629) * MODEL12_texOff(vec2(0,0));
res += mat4x3(-0.000216005326365,-0.001238164491951,-0.000742334232200,-0.021834880113602,-0.009571696631610,0.026166284456849,0.001295566442423,0.001320611569099,0.004121033009142,0.002457664348185,-0.001729019917548,-0.008366369642317) * MODEL12_texOff(vec2(0,1));
res += mat4x3(0.001688297255896,0.002035859972239,0.001082926057279,-0.004245008807629,0.000601020350587,0.001513715251349,-0.003278729971498,-0.001134524354711,-0.000375289149815,0.001355573534966,0.000212731814827,0.000693613023032) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.010423944331706,0.006925402209163,0.003555512987077,0.003139135427773,-0.003603100543842,-0.005084287375212,-0.004706016741693,-0.005425571929663,-0.004805483389646,0.002269364660606,0.003406995208934,0.003576214425266) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.001730899326503,0.003374870168045,0.007411256432533,-0.003174219047651,-0.003936843946576,0.001004464109428,-0.000631512783002,-0.001862044562586,-0.003302609780803,0.003022699616849,0.002735645510256,0.002042746171355) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_Medium_3x_Photo] sub-pixel convolution 3

vec4 hook()
{
vec3 res = vec3(-0.000550082593691,-0.000672272872180,-0.000403866841225);
res += mat4x3(-0.001684749731794,-0.000911634590011,-0.000995065318421,-0.003764815395698,-0.001256855204701,0.001771387993358,-0.000779391324613,0.005105521995574,0.000911082723178,-0.000630976457614,-0.002238428220153,-0.004018847830594) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.004326445981860,0.001422021305189,0.003065727185458,0.007442872039974,0.009555218741298,0.004147818777710,0.003185263602063,-0.001692211604677,-0.007514263503253,0.002908293856308,0.006954818498343,0.000412159191910) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(-0.006680266465992,-0.002749088453129,0.008937411941588,-0.005653867963701,-0.006291002500802,0.000374626106350,-0.001734388875775,0.000224852075917,0.002293411875144,-0.001853885711171,-0.001977308420464,-0.002304076915607) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(0.010139737278223,-0.004820478614420,-0.006180169060826,0.021027280017734,0.013953978195786,-0.003279017284513,0.004943765234202,0.016556119546294,-0.008140207268298,0.005548678804189,-0.005554187577218,-0.000640463258605) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.039288636296988,0.002017518505454,0.020801616832614,-0.000925542728510,-0.034816391766071,-0.022608248516917,0.021047079935670,0.018882466480136,-0.042684964835644,-0.053079515695572,0.003425871254876,0.044043220579624) * MODEL7_texOff(vec2(0,0));
res += mat4x3(0.015029584057629,0.022383144125342,-0.018127990886569,0.004135366994888,0.004224052187055,0.004823487251997,-0.005566203966737,-0.005116757936776,-0.004377648700029,0.007211345247924,0.016369311138988,-0.012730357237160) * MODEL7_texOff(vec2(0,1));
res += mat4x3(0.000570795906242,-0.001983763417229,-0.001714551239274,-0.027877192944288,-0.004251277539879,0.006723227910697,-0.019967442378402,0.012299611233175,0.008271697908640,0.006786706391722,0.003931414335966,0.000703772762790) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.002729964442551,0.006885111797601,0.005695548839867,0.021401923149824,0.020542247220874,-0.013793966732919,0.008110951632261,0.011805702932179,-0.012830100022256,0.007279269397259,-0.023327138274908,-0.010827169753611) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.002852737903595,0.000310272764182,-0.001404994050972,-0.002205739496276,-0.003186419140548,0.004401390906423,-0.002180506242439,-0.003376594046131,0.002292254241183,-0.001322876196355,-0.001533208531328,0.012350717559457) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.003803557017818,0.002323691034690,0.000325181550579,-0.005174831021577,-0.001375297782943,0.003214954398572,0.002883512061089,0.002987193875015,0.002088275039569,-0.004145254381001,-0.000668075517751,0.000881095242221) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(0.006253167521209,0.005475462414324,0.005478885956109,0.003830116009340,-0.001444346853532,0.002528843004256,-0.003218716941774,-0.000105388739030,0.001348233898170,-0.005425543989986,-0.007449889555573,-0.006153784692287) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.000456458568806,0.002022823086008,0.004641312640160,0.001128324656747,-0.002987674204633,0.001878980081528,-0.000225747833611,-0.004991410300136,-0.007914333604276,-0.000273907120572,-0.001138725085184,-0.002444894285873) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.004647195804864,0.011605831794441,0.008539923466742,-0.018519937992096,-0.002662562066689,0.001512492075562,0.020236209034920,0.003267214167863,0.000194031192223,0.019230201840401,0.002561243949458,-0.004224748816341) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.020329741761088,-0.037612594664097,-0.028800062835217,-0.038360379636288,0.016328681260347,0.030100841075182,0.036358673125505,0.054577961564064,0.049002151936293,-0.002224602736533,0.013247448019683,0.027157880365849) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.006649218965322,0.010126216337085,0.001945814001374,0.004060851875693,0.005741943605244,-0.010252788662910,0.004095728509128,0.003711049677804,0.012486740015447,0.005892664659768,0.004088021349162,-0.004709204193205) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.005722028668970,0.007350484374911,0.002874469151720,0.011632153764367,-0.012060107663274,-0.005135903600603,-0.003400470595807,-0.003550828667358,-0.001792965806089,-0.000570629199501,-0.002834715880454,-0.003142236266285) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(-0.005699665285647,-0.011753666214645,-0.003336923196912,-0.008408780209720,-0.017256891354918,0.025721373036504,0.005977619439363,0.006466888356954,0.001816078438424,-0.015918463468552,-0.014295157976449,-0.005635643843561) * MODEL8_texOff(vec2(1,0));
res += mat4x3(0.004838716704398,0.008637825958431,0.006156285293400,0.004866236355156,0.005153587553650,0.003857957432047,0.001120652537793,0.001438484643586,0.004200841765851,0.000957984477282,-0.002554472070187,-0.010157096199691) * MODEL8_texOff(vec2(1,1));
res += mat4x3(-0.004059747327119,-0.000457576097688,-0.001950617064722,-0.002277067396790,0.000932484748773,0.002615791978315,0.005579229909927,0.002229092875496,-0.002001191722229,0.000101318342786,-0.001120951143093,0.000076344236732) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(-0.020937869325280,-0.021170679479837,-0.011791639961302,-0.002846450544894,-0.002001760527492,-0.000311513460474,0.000423370744102,-0.002047385321930,0.001203880878165,-0.000092840142315,0.000783160910942,-0.000504403957166) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(0.004368369001895,0.001285670674406,-0.006860204972327,0.003445673966780,0.000770199636463,-0.000259545282461,0.001359792076983,0.000566614326090,0.000667135172989,0.000823784386739,-0.000850460084621,-0.005445896647871) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(0.003496105084196,-0.001918488997035,-0.006507225334644,-0.004198103677481,-0.005012487526983,-0.002895191544667,0.018073536455631,-0.000581780041102,-0.017671467736363,0.003475213423371,-0.005283384583890,-0.004720014054328) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.048762544989586,-0.029984379187226,-0.002953188726678,-0.032982081174850,0.032064143568277,0.026834484189749,0.000363836617908,-0.006424579303712,-0.007785505615175,-0.010617280378938,0.015303783118725,0.011037659831345) * MODEL9_texOff(vec2(0,0));
res += mat4x3(-0.003380601992831,-0.018404172733426,-0.039282459765673,0.007368756458163,0.009899843484163,-0.026299739256501,0.003614791901782,0.004498389083892,-0.004740282427520,0.031955175101757,0.013436971232295,-0.041705433279276) * MODEL9_texOff(vec2(0,1));
res += mat4x3(0.003172997152433,-0.001986423507333,-0.003251604270190,-0.013983296230435,0.001638483721763,0.000608255097177,0.025588527321815,-0.020369341596961,-0.007611912209541,0.000587279850151,-0.000321113242535,-0.001353827887215) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.000433091365267,0.003216882469133,0.006809521466494,0.030042491853237,0.019557373598218,-0.024425204843283,-0.014234749600291,-0.021104885265231,0.031864553689957,-0.007284334860742,0.002226896816865,0.004126545507461) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.003107846714556,0.002654209500179,0.000174392785993,0.002762930002064,-0.012048402801156,-0.009429943747818,0.007272792048752,0.004715500399470,-0.002962579019368,-0.001608232385479,0.005377838853747,-0.002780327340588) * MODEL9_texOff(vec2(1,1));
res += mat4x3(-0.001980659784749,-0.002429130021483,-0.001988566014916,0.004249772056937,0.002176837529987,0.001590150757693,-0.007119174581021,0.002619190607220,0.001369944657199,-0.005506362766027,-0.008880176581442,-0.006216095760465) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(-0.004091998562217,-0.004444152116776,-0.003401671536267,0.006815083790570,0.008336873725057,0.006946427747607,0.001782257226296,0.007591106928885,-0.008436916396022,0.002626561326906,0.003102007089183,-0.001121670240536) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.000070464629971,-0.000353927724063,-0.002746078651398,-0.000298331200611,0.001293549779803,0.002800393849611,-0.001764414249919,-0.003499823389575,-0.001144126406871,0.003041145158932,0.001588039100170,0.001265948987566) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(-0.000053441985074,0.002226246055216,0.001662755152211,-0.018062090501189,-0.012071074917912,-0.006407454144210,0.033077891916037,0.006874270271510,-0.008708540350199,0.033232588320971,0.010804696008563,-0.002932894043624) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.002262542489916,-0.002363294828683,-0.001277632894926,-0.009745619259775,-0.013607814908028,-0.016800355166197,0.040674813091755,-0.017222287133336,-0.041268065571785,-0.007001438643783,-0.039624869823456,-0.002148859202862) * MODEL10_texOff(vec2(0,0));
res += mat4x3(0.001323305303231,-0.000517774373293,-0.001041848561727,0.002342846244574,0.002077250275761,-0.001457390957512,-0.006697585806251,-0.009773231111467,0.003916880115867,-0.001092873280868,0.002218955894932,0.016667649149895) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.020054101943970,-0.006400445010513,-0.001221266691573,0.016259215772152,0.002380218356848,-0.003661794355139,0.005522056482732,-0.007515896111727,-0.005701637361199,0.002149629406631,-0.011622177436948,-0.003089910838753) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.045481119304895,-0.053209230303764,-0.043060429394245,0.018717862665653,0.030604051426053,0.030085096135736,-0.004554855171591,-0.004061689600348,0.012452746741474,-0.019285341724753,0.011928730644286,0.031800463795662) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.002387124579400,-0.008860845118761,-0.024099785834551,-0.001180750899948,-0.000673907983582,0.004296771250665,0.001768329413608,0.003280095290393,-0.000170544502907,0.002025125082582,0.001918353023939,-0.008412519469857) * MODEL10_texOff(vec2(1,1));
res += mat4x3(0.007810856215656,0.005014755763113,0.001513650408015,0.003520630765706,-0.000060738613683,-0.001432467484847,-0.009661183692515,-0.008397527970374,-0.005625170655549,0.000853475707117,0.001007346552797,0.000091374102340) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(0.007662703748792,0.009269690141082,0.009091226384044,-0.002482044044882,0.002088484587148,0.003167170565575,0.024746552109718,0.016706710681319,0.000661479483824,-0.005182291846722,-0.000140519012348,0.005284409970045) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.006609805393964,-0.005221976898611,0.001727100461721,0.000757458445150,0.003564754268155,-0.001528767053969,-0.003249447792768,0.002260368783027,0.017158113420010,-0.003442571731284,-0.001884280238301,-0.000444687524578) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(-0.028496263548732,-0.010197347030044,0.002580312080681,0.010604886338115,-0.014508769847453,0.000883852655534,0.008392849937081,0.004205748438835,0.003492162562907,-0.004788547754288,-0.008105009794235,-0.001266044331715) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(0.010824505239725,-0.009284070692956,-0.031705800443888,0.011703646741807,-0.051788043230772,0.032966535538435,-0.007434473372996,0.017279366031289,0.018870858475566,-0.023905610665679,-0.012579226866364,0.029329482465982) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.000887972011697,0.005918008740991,0.010233059525490,-0.006310406606644,-0.010421725921333,0.029650187119842,-0.013182075694203,-0.038027428090572,-0.035989988595247,-0.002073706360534,0.003125945106149,0.021604055538774) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.018578231334686,0.009916819632053,0.002380177844316,0.005509378854185,0.001727250986733,0.001494043739513,-0.003983000759035,-0.003107631113380,-0.000445349694928,-0.014379982836545,0.003684552386403,0.001564836478792) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(-0.014061069115996,-0.006004311144352,0.012843003496528,0.013212327845395,-0.006478960625827,-0.009803558699787,-0.004658822435886,-0.002967782085761,-0.002778237685561,-0.029871767386794,0.035432536154985,0.004134159069508) * MODEL11_texOff(vec2(1,0));
res += mat4x3(0.001837923424318,-0.000938630138990,-0.008764114230871,-0.002260360401124,-0.002612712560222,-0.005100048147142,0.012532200664282,0.010043091140687,-0.000675292336382,0.003840871620923,0.012749029323459,-0.020414195954800) * MODEL11_texOff(vec2(1,1));
res += mat4x3(-0.000985099235550,0.000693501788191,0.001102409325540,0.000341004226357,0.000341097678756,-0.000168358848896,0.006608718540519,0.005384450778365,0.005155224353075,-0.015279863029718,-0.007408291101456,-0.000504074967466) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.003805122338235,-0.003770923009142,-0.001595844863914,0.006107030902058,0.003261734964326,0.001466653309762,0.022400505840778,0.020197661593556,0.011578868143260,-0.011845757253468,-0.016686309129000,-0.020041346549988) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.000525850628037,-0.001740794512443,-0.003741581924260,-0.005753791891038,-0.001508908229880,0.004242442082614,-0.003577295690775,-0.000072810238635,0.011918804608285,-0.002071925671771,-0.003814944997430,-0.006776446010917) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(0.009789380244911,0.000853688979987,-0.002240819158033,-0.007350398693234,0.006684016902000,0.006735438015312,-0.005451921373606,-0.001101699657738,-0.000530017481651,-0.007227018009871,0.000261646491708,0.003177274717018) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(0.023797081783414,0.026602264493704,0.022295588627458,0.001605237484910,-0.016600206494331,-0.009496804326773,-0.019856221973896,-0.020627195015550,-0.016188373789191,0.017201611772180,0.003195450874045,-0.006384624168277) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.002613458083943,0.006559317931533,0.014416897669435,-0.010515601374209,-0.000419448449975,0.014166073873639,-0.000898301601410,-0.004948970396072,-0.011258551850915,0.000544000242371,0.006860232446343,0.014328857883811) * MODEL12_texOff(vec2(0,1));
res += mat4x3(0.012359615415335,0.002345583401620,-0.000760936120059,-0.004281990230083,0.004974961280823,0.004678776953369,0.001880837022327,-0.000095329975011,-0.000438875082182,-0.001763661275618,-0.001201606588438,-0.001231308793649) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.025587299838662,0.036277472972870,0.029994642361999,0.022401079535484,-0.001980612985790,-0.011701936833560,0.003606276120991,0.005244537256658,0.004132101312280,-0.004088505171239,-0.004184720572084,-0.002639142796397) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.000144278019434,0.000744668126572,0.009369893930852,-0.012024258263409,-0.013638952746987,0.010949025861919,0.000845260394271,0.000503864372149,0.001757812569849,-0.002748177619651,-0.001838530879468,-0.002125568222255) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_3x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(3));
mat3 res = mat3(SUBCONV1_tex(base).rgb,SUBCONV2_tex(base).rgb,SUBCONV3_tex(base).rgb);
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
